[#369] fix controllers/admin/build_scripts_controller specs

This commit is contained in:
Alexander Machehin 2015-02-03 01:28:22 +05:00
parent f1daf3d146
commit f7cd64563f
1 changed files with 2 additions and 2 deletions

View File

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