Commit 1e3f09b21f124b15eebf71a23c12cfa41f1e5372
1 parent
128ef337
Exists in
master
and in
4 other branches
Fix tests
Showing
2 changed files
with
9 additions
and
9 deletions
Show diff stats
spec/controllers/commit_controller_spec.rb
| ... | ... | @@ -3,7 +3,7 @@ require 'spec_helper' |
| 3 | 3 | describe Projects::CommitController do |
| 4 | 4 | let(:project) { create(:project_with_code) } |
| 5 | 5 | let(:user) { create(:user) } |
| 6 | - let(:commit) { project.repository.last_commit_for("master") } | |
| 6 | + let(:commit) { project.repository.commit("master") } | |
| 7 | 7 | |
| 8 | 8 | before do |
| 9 | 9 | sign_in(user) | ... | ... |
spec/features/security/project_access_spec.rb
| ... | ... | @@ -175,8 +175,8 @@ describe "Application access" do |
| 175 | 175 | it { should be_denied_for :visitor } |
| 176 | 176 | end |
| 177 | 177 | |
| 178 | - describe "GET /project_code/repository" do | |
| 179 | - subject { project_repository_path(project) } | |
| 178 | + describe "GET /project_code/branches/recent" do | |
| 179 | + subject { recent_project_branches_path(project) } | |
| 180 | 180 | |
| 181 | 181 | it { should be_allowed_for master } |
| 182 | 182 | it { should be_allowed_for reporter } |
| ... | ... | @@ -186,7 +186,7 @@ describe "Application access" do |
| 186 | 186 | it { should be_denied_for :visitor } |
| 187 | 187 | end |
| 188 | 188 | |
| 189 | - describe "GET /project_code/repository/branches" do | |
| 189 | + describe "GET /project_code/branches" do | |
| 190 | 190 | subject { project_branches_path(project) } |
| 191 | 191 | |
| 192 | 192 | before do |
| ... | ... | @@ -202,7 +202,7 @@ describe "Application access" do |
| 202 | 202 | it { should be_denied_for :visitor } |
| 203 | 203 | end |
| 204 | 204 | |
| 205 | - describe "GET /project_code/repository/tags" do | |
| 205 | + describe "GET /project_code/tags" do | |
| 206 | 206 | subject { project_tags_path(project) } |
| 207 | 207 | |
| 208 | 208 | before do |
| ... | ... | @@ -417,8 +417,8 @@ describe "Application access" do |
| 417 | 417 | it { should be_denied_for :visitor } |
| 418 | 418 | end |
| 419 | 419 | |
| 420 | - describe "GET /project_code/repository" do | |
| 421 | - subject { project_repository_path(project) } | |
| 420 | + describe "GET /project_code/branches/recent" do | |
| 421 | + subject { recent_project_branches_path(project) } | |
| 422 | 422 | |
| 423 | 423 | it { should be_allowed_for master } |
| 424 | 424 | it { should be_allowed_for reporter } |
| ... | ... | @@ -428,7 +428,7 @@ describe "Application access" do |
| 428 | 428 | it { should be_denied_for :visitor } |
| 429 | 429 | end |
| 430 | 430 | |
| 431 | - describe "GET /project_code/repository/branches" do | |
| 431 | + describe "GET /project_code/branches" do | |
| 432 | 432 | subject { project_branches_path(project) } |
| 433 | 433 | |
| 434 | 434 | before do |
| ... | ... | @@ -444,7 +444,7 @@ describe "Application access" do |
| 444 | 444 | it { should be_denied_for :visitor } |
| 445 | 445 | end |
| 446 | 446 | |
| 447 | - describe "GET /project_code/repository/tags" do | |
| 447 | + describe "GET /project_code/tags" do | |
| 448 | 448 | subject { project_tags_path(project) } |
| 449 | 449 | |
| 450 | 450 | before do | ... | ... |