Improve specs
This commit is contained in:
parent
57e9c5a3a2
commit
7e9864e021
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue