15 lines
308 B
Ruby
15 lines
308 B
Ruby
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 |