Commit 72ee4109f2c3996b384026833c273c31b3cf8392

Authored by Leandro Santos
Committed by Macartur Sousa
1 parent 2aaa7a7a
Exists in elasticsearch_api

compare array correctly

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/functional/cms_controller_test.rb
... ... @@ -528,7 +528,7 @@ class CmsControllerTest < ActionController::TestCase
528 528 post :new, :type => TextileArticle.name, :profile => profile.identifier, :article => { :name => 'adding-categories-test', :category_ids => [ c1.id, c3.id, c3.id ] }
529 529  
530 530 saved = profile.articles.find_by(name: 'adding-categories-test')
531   - assert_equal [c1, c3], saved.categories.all
  531 + assert_equivalent [c1, c3], saved.categories.all
532 532 end
533 533  
534 534 should 'filter html with white_list from tiny mce article name' do
... ...