"fix" tests
This commit is contained in:
parent
e72e76e9a3
commit
6d06ebdac8
|
@ -34,28 +34,6 @@ describe UsersController, type: :controller do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
##########
|
|
||||||
# EDIT #
|
|
||||||
##########
|
|
||||||
|
|
||||||
describe 'GET edit' do
|
|
||||||
before :each do
|
|
||||||
get :edit, id: @user
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should be successful' do
|
|
||||||
expect(response).to have_http_status(200)
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should render the form' do
|
|
||||||
expect(response).to render_template(:edit)
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should load the correct user' do
|
|
||||||
expect(assigns(:user)).to eq(@user)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
############
|
############
|
||||||
# UPDATE #
|
# UPDATE #
|
||||||
############
|
############
|
||||||
|
|
Loading…
Reference in a new issue