concretized redirection expectations in controller specs

This commit is contained in:
Hauke Klement
2015-02-24 18:57:00 +01:00
parent c84e47753c
commit 42c8b47d40
9 changed files with 26 additions and 26 deletions

View File

@ -16,7 +16,7 @@ describe TeamsController do
expect { request.call }.to change(Team, :count).by(1)
end
expect_redirect
expect_redirect(Team.last)
end
context 'with an invalid team' do
@ -79,7 +79,7 @@ describe TeamsController do
before(:each) { put :update, team: FactoryGirl.attributes_for(:team), id: team.id }
expect_assigns(team: Team)
expect_redirect
expect_redirect(:team)
end
context 'with an invalid team' do