Browse Source

Cleaning up

remotes/origin/master
echarp 4 years ago
parent
commit
229e319332
  1. 2
      test/controllers/moderations_controller_test.rb
  2. 2
      test/models/event_test.rb

2
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)

2
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

Loading…
Cancel
Save