[#369] fix controllers/admin/build_scripts_controller specs
This commit is contained in:
parent
f1daf3d146
commit
f7cd64563f
|
@ -9,11 +9,11 @@ shared_examples_for 'an admin controller' do
|
|||
user = User.first || FactoryGirl.create(:user)
|
||||
sign_in user
|
||||
get :index
|
||||
response.should redirect_to('/404.html')
|
||||
response.should render_template(file: "#{Rails.root}/public/404.html")
|
||||
end
|
||||
|
||||
it 'is successful for admin users' do
|
||||
user = User.first || FactoryGirl.create(:admin)
|
||||
user = FactoryGirl.create(:admin)
|
||||
sign_in user
|
||||
get :index
|
||||
response.should be_success
|
||||
|
|
Loading…
Reference in New Issue