URL access spec added

This commit is contained in:
chrismo
2013-10-01 16:06:21 -05:00
parent 0df6735b53
commit 4f1526e021
+15
View File
@@ -0,0 +1,15 @@
require 'spec_helper'
feature 'url access' do
before do
UserFixture.reset_all_users
@normal_user = UserFixture.normal_user
end
scenario 'admin route not protected', :js => true do
login @normal_user
visit '/admin/1/dashboard'
current_path.should == '/admin/1/dashboard'
end
end