Commit 5b5b05f5c809d77ffaafa048d661f0d5b532b6e7
1 parent
2bd7ffc8
Exists in
master
and in
1 other branch
fix unit tests
Showing
4 changed files
with
5 additions
and
4 deletions
Show diff stats
lib/proposals_discussion_plugin.rb
... | ... | @@ -37,8 +37,8 @@ class ProposalsDiscussionPlugin < Noosfero::Plugin |
37 | 37 | |
38 | 38 | def content_remove_new(page) |
39 | 39 | page.kind_of?(ProposalsDiscussionPlugin::Discussion) || |
40 | - page.kind_of?(ProposalsDiscussionPlugin::Topic) || | |
41 | - page.kind_of?(ProposalsDiscussionPlugin::Proposal) | |
40 | + page.kind_of?(ProposalsDiscussionPlugin::Topic) || | |
41 | + page.kind_of?(ProposalsDiscussionPlugin::Proposal) | |
42 | 42 | end |
43 | 43 | |
44 | 44 | def content_remove_upload(page) | ... | ... |
test/test_helper.rb
test/unit/api_test.rb
test/unit/proposal_helper_test.rb
... | ... | @@ -31,7 +31,7 @@ class ProposalHelperTest < ActionView::TestCase |
31 | 31 | end |
32 | 32 | |
33 | 33 | should 'display proposal tags' do |
34 | - proposal.expects(:tags).returns([ActsAsTaggableOn::Tag.new]) | |
34 | + proposal.expects(:tags).returns([ActsAsTaggableOn::Tag.new(:name => 'a tag')]) | |
35 | 35 | proposal.expects(:profile).returns(fast_create(Profile)) |
36 | 36 | assert proposal_tags(proposal).present? |
37 | 37 | end | ... | ... |