Commit 92de0faf6e86d7fed33bc8989e3f2147c16450dd
1 parent
fc66c183
Exists in
master
and in
4 other branches
Fix spec errors.
Showing
2 changed files
with
11 additions
and
8 deletions
Show diff stats
spec/features/projects_spec.rb
@@ -11,7 +11,7 @@ describe "Projects" do | @@ -11,7 +11,7 @@ describe "Projects" do | ||
11 | end | 11 | end |
12 | 12 | ||
13 | it "should be correct path" do | 13 | it "should be correct path" do |
14 | - expect { click_link "Remove" }.to change {Project.count}.by(-1) | 14 | + expect { click_link "Remove project" }.to change {Project.count}.by(-1) |
15 | end | 15 | end |
16 | end | 16 | end |
17 | end | 17 | end |
spec/features/security/project_access_spec.rb
@@ -230,14 +230,17 @@ describe "Application access" do | @@ -230,14 +230,17 @@ describe "Application access" do | ||
230 | end | 230 | end |
231 | 231 | ||
232 | describe "GET /project_code/files" do | 232 | describe "GET /project_code/files" do |
233 | - subject { files_project_path(project) } | 233 | + pending("ProjectsController#files have been deleted.") do |
234 | 234 | ||
235 | - it { should be_allowed_for master } | ||
236 | - it { should be_allowed_for reporter } | ||
237 | - it { should be_denied_for :admin } | ||
238 | - it { should be_denied_for guest } | ||
239 | - it { should be_denied_for :user } | ||
240 | - it { should be_denied_for :visitor } | 235 | + subject { files_project_path(project) } |
236 | + | ||
237 | + it { should be_allowed_for master } | ||
238 | + it { should be_allowed_for reporter } | ||
239 | + it { should be_denied_for :admin } | ||
240 | + it { should be_denied_for guest } | ||
241 | + it { should be_denied_for :user } | ||
242 | + it { should be_denied_for :visitor } | ||
243 | + end | ||
241 | end | 244 | end |
242 | end | 245 | end |
243 | end | 246 | end |