From b004dee3630266464caeb714392e980458698762 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 24 May 2016 09:25:19 -0300 Subject: [PATCH] compare array correctly --- test/functional/cms_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 30e7844..4f1b81b 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -528,7 +528,7 @@ class CmsControllerTest < ActionController::TestCase post :new, :type => TextileArticle.name, :profile => profile.identifier, :article => { :name => 'adding-categories-test', :category_ids => [ c1.id, c3.id, c3.id ] } saved = profile.articles.find_by(name: 'adding-categories-test') - assert_equal [c1, c3], saved.categories.all + assert_equivalent [c1, c3], saved.categories.all end should 'filter html with white_list from tiny mce article name' do -- libgit2 0.21.2