Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSato Hiroyuki <sathiroyuki@gmail.com>2013-03-19 08:46:07 +0400
committerSato Hiroyuki <sathiroyuki@gmail.com>2013-03-19 09:21:00 +0400
commit92de0faf6e86d7fed33bc8989e3f2147c16450dd (patch)
treedeec18b47f0c41f1678ab3d996df37318c9c36bc /spec
parentfc66c18349c01b5d5d07b9780d54ad12f42112de (diff)
Fix spec errors.
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects_spec.rb2
-rw-r--r--spec/features/security/project_access_spec.rb17
2 files changed, 11 insertions, 8 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index 7bc48260935..1ffc28bfa4e 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -11,7 +11,7 @@ describe "Projects" do
end
it "should be correct path" do
- expect { click_link "Remove" }.to change {Project.count}.by(-1)
+ expect { click_link "Remove project" }.to change {Project.count}.by(-1)
end
end
end
diff --git a/spec/features/security/project_access_spec.rb b/spec/features/security/project_access_spec.rb
index a35175102ec..a871cf01dd4 100644
--- a/spec/features/security/project_access_spec.rb
+++ b/spec/features/security/project_access_spec.rb
@@ -230,14 +230,17 @@ describe "Application access" do
end
describe "GET /project_code/files" do
- subject { files_project_path(project) }
+ pending("ProjectsController#files have been deleted.") do
- it { should be_allowed_for master }
- it { should be_allowed_for reporter }
- it { should be_denied_for :admin }
- it { should be_denied_for guest }
- it { should be_denied_for :user }
- it { should be_denied_for :visitor }
+ subject { files_project_path(project) }
+
+ it { should be_allowed_for master }
+ it { should be_allowed_for reporter }
+ it { should be_denied_for :admin }
+ it { should be_denied_for guest }
+ it { should be_denied_for :user }
+ it { should be_denied_for :visitor }
+ end
end
end
end