diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-20 18:33:04 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-20 19:26:49 +0200 |
commit | 3d7eb9d9151773e01c34cf53dfc91e6bfc2207b3 (patch) | |
tree | 9863c5bea05e24e32bd37c695303a612cd607df3 /spec | |
parent | ff0b455a6b54551f7fd4f5ce653ceb3499d099b1 (diff) | |
download | gitlab-ci-3d7eb9d9151773e01c34cf53dfc91e6bfc2207b3.tar.gz |
improve commit routing
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/commits_spec.rb | 2 | ||||
-rw-r--r-- | spec/requests/commits_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb index 158dc39..01d5eef 100644 --- a/spec/features/commits_spec.rb +++ b/spec/features/commits_spec.rb @@ -11,7 +11,7 @@ describe "Commits" do describe "GET /:project/commits/:sha" do before do - visit project_show_commit_path(@project, sha: @commit.sha, ref: @commit.ref) + visit project_ref_commit_path(@project, @commit.ref, @commit.sha) end it { page.should have_content @commit.sha[0..7] } diff --git a/spec/requests/commits_spec.rb b/spec/requests/commits_spec.rb index 5c894ea..e9d8366 100644 --- a/spec/requests/commits_spec.rb +++ b/spec/requests/commits_spec.rb @@ -6,9 +6,9 @@ describe "Commits" do @commit = FactoryGirl.create :commit, project: @project end - describe "GET /:project/commits/:id/status.json" do + describe "GET /:project/refs/:ref_name/commits/:id/status.json" do before do - get status_project_commit_path(@project, @commit), format: :json + get status_project_ref_commit_path(@project, @commit.ref, @commit.sha), format: :json end it { response.status.should == 200 } |