makes rubocop happy

This commit is contained in:
Eugene Dubinin 2017-01-23 17:23:37 +02:00
parent b86c03f898
commit 22e0c1d8f8
4 changed files with 7 additions and 12 deletions

View file

@ -77,9 +77,7 @@ describe Admin::EventsController do
it 'does not create new event' do
allow_any_instance_of(Event).to receive(:save).and_return(false)
expect do
post :create, event: attributes_for(:event, event_type_id: event_type.id),
conference_id: conference.short_title,
user: attributes_for(:user)
post :create, event: attributes_for(:event, event_type_id: event_type.id), conference_id: conference.short_title, user: attributes_for(:user)
end.not_to change{ Event.count }
end
end