mirror of https://github.com/mastodon/mastodon
Check response body instead of assigns in invites controller spec
This commit is contained in:
parent
d627957b50
commit
c47f3415a5
|
@ -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 New Issue