Commit 0e71f12123600bb96ce00290311cac8ebd03e9f4
1 parent
55da129c
Exists in
master
and in
11 other branches
Fix tests
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
test/unit/discussion_test.rb
| ... | ... | @@ -26,7 +26,7 @@ class DiscussionTest < ActiveSupport::TestCase |
| 26 | 26 | |
| 27 | 27 | should 'return max score' do |
| 28 | 28 | person = fast_create(Person) |
| 29 | - discussion = ProposalsDiscussionPlugin::Discussion.create!(:profile => person, :name => 'discussion') | |
| 29 | + discussion = ProposalsDiscussionPlugin::Discussion.create!(:profile => person, :name => 'discussion', :allow_topics => false) | |
| 30 | 30 | proposal1 = ProposalsDiscussionPlugin::Proposal.create!(:parent => discussion, :profile => profile, :name => "proposal1", :abstract => 'abstract') |
| 31 | 31 | proposal2 = ProposalsDiscussionPlugin::Proposal.create!(:parent => discussion, :profile => profile, :name => "proposal2", :abstract => 'abstract') |
| 32 | 32 | 10.times { Comment.create!(:source => proposal1, :body => "comment", :author => person) } | ... | ... |
test/unit/proposal_test.rb
| ... | ... | @@ -5,7 +5,7 @@ class ProposalTest < ActiveSupport::TestCase |
| 5 | 5 | def setup |
| 6 | 6 | @profile = fast_create(Community) |
| 7 | 7 | @person = fast_create(Person) |
| 8 | - @discussion = ProposalsDiscussionPlugin::Discussion.create!(:name => 'discussion', :profile => person, :name => 'discussion') | |
| 8 | + @discussion = ProposalsDiscussionPlugin::Discussion.create!(:name => 'discussion', :profile => person, :name => 'discussion', :allow_topics => false) | |
| 9 | 9 | @proposal = ProposalsDiscussionPlugin::Proposal.new(:name => 'test', :abstract => 'abstract', :profile => @profile, :parent => @discussion) |
| 10 | 10 | @proposal.created_by = @person |
| 11 | 11 | end | ... | ... |