Dashboard refactoring:
* dashboard should be in dashboard controller not project index * projects index removed
This commit is contained in:
parent
9ef9c58f55
commit
edd81a79c5
15 changed files with 84 additions and 101 deletions
|
@ -1,16 +1,16 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "Projects" do
|
||||
describe "GET /projects" do
|
||||
it { projects_path.should be_allowed_for :admin }
|
||||
it { projects_path.should be_allowed_for :user }
|
||||
it { projects_path.should be_denied_for :visitor }
|
||||
describe "Projects Security" do
|
||||
describe "GET /" do
|
||||
it { root_path.should be_allowed_for :admin }
|
||||
it { root_path.should be_allowed_for :user }
|
||||
it { root_path.should be_denied_for :visitor }
|
||||
end
|
||||
|
||||
describe "GET /projects/new" do
|
||||
it { projects_path.should be_allowed_for :admin }
|
||||
it { projects_path.should be_allowed_for :user }
|
||||
it { projects_path.should be_denied_for :visitor }
|
||||
it { new_project_path.should be_allowed_for :admin }
|
||||
it { new_project_path.should be_allowed_for :user }
|
||||
it { new_project_path.should be_denied_for :visitor }
|
||||
end
|
||||
|
||||
describe "Project" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue