[Git][noosfero/noosfero][master] compare array correctly

Leandro Nunes gitlab at mg.gitlab.com
Tue May 24 09:25:42 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
b004dee3 by Leandro Nunes dos Santos at 2016-05-24T09:25:19-03:00
compare array correctly

- - - - -


1 changed file:

- test/functional/cms_controller_test.rb


Changes:

=====================================
test/functional/cms_controller_test.rb
=====================================
--- 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



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/b004dee3630266464caeb714392e980458698762
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160524/077b29e9/attachment.html>


More information about the Noosfero-dev mailing list