mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Check response body instead of assigns in invites controller spec
This commit is contained in:
parent
922373c8f5
commit
60b47f8512
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ describe Admin::InvitesController do
|
|||
|
||||
it 'renders index page' do
|
||||
expect(subject).to render_template :index
|
||||
expect(assigns(:invites)).to include invite
|
||||
expect(response.body)
|
||||
.to include(invite.code)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue