[Git][noosfero/noosfero][master] categories: fix type error in test

Bráulio Bhavamitra gitlab at mg.gitlab.com
Sat Dec 12 14:46:06 BRST 2015


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
eb0257c2 by Braulio Bhavamitra at 2015-12-12T13:45:24Z
categories: fix type error in test

- - - - -


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
+    assert_equal [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/eb0257c25bf821d826fbb44f0f4259421c980823
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151212/21c4eff4/attachment.html>


More information about the Noosfero-dev mailing list