diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 2f0a46b..2007e74 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -27,7 +27,7 @@ class CmsControllerTest < ActionController::TestCase discussion.custom_body_label = "My Custom " discussion.save! get :edit, :id => proposal.id, :profile => profile.identifier - assert_tag :tag => 'label', :attributes => {:class => 'formlabel'}, :content => 'My Custom Label' + assert_tag :tag => 'label', :attributes => {:class => 'formlabel'}, :content => 'My Custom ' end should 'display available phases when edit a proposal' do diff --git a/test/functional/proposals_discussion_plugin_public_controller_test.rb b/test/functional/proposals_discussion_plugin_public_controller_test.rb index 4318c41..0fadc26 100644 --- a/test/functional/proposals_discussion_plugin_public_controller_test.rb +++ b/test/functional/proposals_discussion_plugin_public_controller_test.rb @@ -88,9 +88,9 @@ class ProposalsDiscussionPluginPublicControllerTest < ActionController::TestCase assert_equivalent proposals, assigns(:proposals) end - should 'not load proposals when profile is private and user is not logged' do + should 'not load proposals when profile is not visible and user is not logged' do logout - profile.update_attribute(:public_profile, false) + profile.update_attribute(:visible, false) proposals = 3.times.map { fast_create(ProposalsDiscussionPlugin::Proposal, :name => 'proposal title', :abstract => 'proposal abstract', :profile_id => profile.id, :parent_id => topic.id, :author_id => person.id)} get :load_proposals, :profile => profile.identifier, :holder_id => topic.id assert_equal nil, assigns(:proposals) diff --git a/test/unit/api_test.rb b/test/unit/api_test.rb index eca973f..5d61c3e 100644 --- a/test/unit/api_test.rb +++ b/test/unit/api_test.rb @@ -64,7 +64,7 @@ class APITest < ActiveSupport::TestCase assert json['success'] task = Task.last assert_equal "Proposal Test abstract", task.abstract - assert_equal "This is a malicious body SearchParam", task.article.body + assert_equal "This is a malicious body SearchParam", task.article[:body] end should 'return article position when list proposals' do -- libgit2 0.21.2