Improve zone specs

#475
This commit is contained in:
Artur Beljajev 2017-05-01 21:31:54 +03:00
parent 71e62a5f86
commit eb2796483d
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ RSpec.describe 'admin zone update', settings: false do
it 'redirects to :index' do
zone = create(:zone)
patch admin_zone_path(zone), { zone: attributes_for(:zone) }
patch admin_zone_path(zone), zone: attributes_for(:zone)
expect(response).to redirect_to admin_zones_url
end