1
0
Fork 0
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:
Matt Jankowski 2024-04-30 11:43:33 -04:00
parent 68fb551f07
commit 0fec36f3e6

View file

@ -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