diff --git a/test/controllers/moderations_controller_test.rb b/test/controllers/moderations_controller_test.rb index 89a6a667..3f767d07 100644 --- a/test/controllers/moderations_controller_test.rb +++ b/test/controllers/moderations_controller_test.rb @@ -45,7 +45,7 @@ class ModerationsControllerTest < ActionDispatch::IntegrationTest @moderation = events :proposed decision = @moderation.decision_time - assert !@moderation.moderated? + assert_not @moderation.moderated? assert_difference 'Event.moderated.count' do put accept_moderation_url(@moderation) diff --git a/test/models/event_test.rb b/test/models/event_test.rb index 120ae3cf..f21513cd 100644 --- a/test/models/event_test.rb +++ b/test/models/event_test.rb @@ -74,7 +74,7 @@ class EventTest < ActiveSupport::TestCase ) assert @event.save, @event.errors.messages - assert !@event.moderated? + assert_not @event.moderated? @event.update moderated: 1