1
0
Fork 0

Change redirect

This commit is contained in:
Alex Kotov 2018-12-03 22:12:47 +05:00
parent 2eb272a8cd
commit c3722e7559
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 17 additions and 9 deletions

View file

@ -19,7 +19,7 @@ class Passports::PassportConfirmationsController < ApplicationController
end
end
redirect_to @passport
redirect_to passport_passport_confirmations_path @passport
end
private

View file

@ -40,7 +40,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
specify do
@ -75,7 +76,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
end
end
@ -103,7 +105,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
end
end
@ -131,7 +134,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
end
end
@ -159,7 +163,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
end
end
@ -183,7 +188,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
end
end
@ -215,7 +221,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
specify do
@ -250,7 +257,8 @@ RSpec.describe 'POST /passports/:passport_id/passport_confirmations' do
before { make_request }
specify do
expect(response).to redirect_to passport
expect(response).to \
redirect_to passport_passport_confirmations_path passport
end
specify do