Cleaning up
This commit is contained in:
parent
4002695e5d
commit
229e319332
@ -45,7 +45,7 @@ class ModerationsControllerTest < ActionDispatch::IntegrationTest
|
|||||||
@moderation = events :proposed
|
@moderation = events :proposed
|
||||||
|
|
||||||
decision = @moderation.decision_time
|
decision = @moderation.decision_time
|
||||||
assert !@moderation.moderated?
|
assert_not @moderation.moderated?
|
||||||
|
|
||||||
assert_difference 'Event.moderated.count' do
|
assert_difference 'Event.moderated.count' do
|
||||||
put accept_moderation_url(@moderation)
|
put accept_moderation_url(@moderation)
|
||||||
|
@ -74,7 +74,7 @@ class EventTest < ActiveSupport::TestCase
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert @event.save, @event.errors.messages
|
assert @event.save, @event.errors.messages
|
||||||
assert !@event.moderated?
|
assert_not @event.moderated?
|
||||||
|
|
||||||
@event.update moderated: 1
|
@event.update moderated: 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user