From 1a5161a9c803d88c72456fa80ad79e6141e1d7ce Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Feb 2017 18:30:47 +0000 Subject: [PATCH] Remove a few unnecessary attributes from moderator users --- test/controllers/notes_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index c08117f14..a16ff3477 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -589,7 +589,7 @@ class NotesControllerTest < ActionController::TestCase def test_destroy_success open_note_with_comment = create(:note_with_comments) user = create(:user) - moderator_user = create(:moderator_user, :status => "active") + moderator_user = create(:moderator_user) delete :destroy, :id => open_note_with_comment.id, :text => "This is a hide comment", :format => "json" assert_response :unauthorized @@ -619,7 +619,7 @@ class NotesControllerTest < ActionController::TestCase def test_destroy_fail user = create(:user) - moderator_user = create(:moderator_user, :status => "active") + moderator_user = create(:moderator_user) delete :destroy, :id => 12345, :format => "json" assert_response :unauthorized @@ -950,7 +950,7 @@ class NotesControllerTest < ActionController::TestCase def test_mine_success first_user = create(:user) second_user = create(:user) - moderator_user = create(:moderator_user, :status => "active", :terms_seen => true) + moderator_user = create(:moderator_user) create(:note) do |note| create(:note_comment, :note => note, :author => first_user) -- 2.39.5