- note = create(:note)
- create(:note_comment, :note => note, :author_id => users(:normal_user).id)
- note2 = create(:note)
- create(:note_comment, :note => note2, :author_id => users(:second_public_user).id)
- hidden_note = create(:note, :status => "hidden")
- create(:note_comment, :note => hidden_note, :author_id => users(:second_public_user).id)
+ first_user = create(:user)
+ second_user = create(:user)
+ moderator_user = create(:moderator_user, :status => "active", :terms_seen => true)
+
+ create(:note) do |note|
+ create(:note_comment, :note => note, :author => first_user)
+ end
+ create(:note) do |note|
+ create(:note_comment, :note => note, :author => second_user)
+ end
+ create(:note, :status => "hidden") do |note|
+ create(:note_comment, :note => note, :author => second_user)
+ end