1
0
Fork 0

Improve specs

This commit is contained in:
Alex Kotov 2018-12-01 04:10:31 +05:00
parent 57e9c5a3a2
commit 7e9864e021
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 5 additions and 1 deletions

View file

@ -20,6 +20,10 @@ RSpec.describe 'POST /membership_applications' do
context 'after request' do context 'after request' do
before { make_request } before { make_request }
specify do
expect(response).to redirect_to root_url
end
specify do specify do
expect(MembershipApplication.last).to \ expect(MembershipApplication.last).to \
have_attributes membership_application_attributes have_attributes membership_application_attributes

View file

@ -27,7 +27,7 @@ RSpec.describe 'POST /passports' do
before { make_request } before { make_request }
specify do specify do
expect(response).to redirect_to passport_url Passport.last expect(response).to redirect_to Passport.last
end end
specify do specify do