From 229e3193320e23e69b6e261bd406aa1a5f6936ff Mon Sep 17 00:00:00 2001 From: echarp Date: Wed, 23 May 2018 09:25:12 +0200 Subject: [PATCH] Cleaning up --- test/controllers/moderations_controller_test.rb | 2 +- test/models/event_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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