Remove usage of assigns
in controller specs (#30195)
This commit is contained in:
parent
ae363f0555
commit
5b595b8a5a
13 changed files with 66 additions and 51 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…
Add table
Add a link
Reference in a new issue