76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
27 lines
740 B
Ruby
27 lines
740 B
Ruby
require 'spec_helper'
|
|
|
|
describe "Admin::Projects", feature: true do
|
|
describe "GET /admin/projects" do
|
|
subject { admin_namespaces_projects_path }
|
|
|
|
it { is_expected.to be_allowed_for :admin }
|
|
it { is_expected.to be_denied_for :user }
|
|
it { is_expected.to be_denied_for :visitor }
|
|
end
|
|
|
|
describe "GET /admin/users" do
|
|
subject { admin_users_path }
|
|
|
|
it { is_expected.to be_allowed_for :admin }
|
|
it { is_expected.to be_denied_for :user }
|
|
it { is_expected.to be_denied_for :visitor }
|
|
end
|
|
|
|
describe "GET /admin/hooks" do
|
|
subject { admin_hooks_path }
|
|
|
|
it { is_expected.to be_allowed_for :admin }
|
|
it { is_expected.to be_denied_for :user }
|
|
it { is_expected.to be_denied_for :visitor }
|
|
end
|
|
end
|