diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-05 16:58:04 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-20 19:19:29 +0200 |
commit | e5fe14b2fb6590e71c7853d38ff74f32bc6b4ed4 (patch) | |
tree | 3536fcfdd92321d21602186d6716d8e3ad328b1a /spec/models | |
parent | 478f92d2c254f987db926297402080ec60eaf2d1 (diff) | |
download | gitlab-ce-e5fe14b2fb6590e71c7853d38ff74f32bc6b4ed4.tar.gz |
Link to CI with ref
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_services/buildbox_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/project_services/gitlab_ci_service_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/project_services/buildbox_service_spec.rb b/spec/models/project_services/buildbox_service_spec.rb index 39d7df54cf0..fcbf3e45b9a 100644 --- a/spec/models/project_services/buildbox_service_spec.rb +++ b/spec/models/project_services/buildbox_service_spec.rb @@ -59,7 +59,7 @@ describe BuildboxService do describe :build_page do it 'returns the correct build page' do - expect(@service.build_page('2ab7834c')).to eq( + expect(@service.build_page('2ab7834c', nil)).to eq( 'https://buildbox.io/account-name/example-project/builds?commit=2ab7834c' ) end diff --git a/spec/models/project_services/gitlab_ci_service_spec.rb b/spec/models/project_services/gitlab_ci_service_spec.rb index 8bfb19e524b..610f33c5823 100644 --- a/spec/models/project_services/gitlab_ci_service_spec.rb +++ b/spec/models/project_services/gitlab_ci_service_spec.rb @@ -39,11 +39,11 @@ describe GitlabCiService do end describe :commit_status_path do - it { expect(@service.commit_status_path("2ab7834c")).to eq("http://ci.gitlab.org/projects/2/commits/2ab7834c/status.json?token=verySecret")} + it { expect(@service.commit_status_path("2ab7834c", 'master')).to eq("http://ci.gitlab.org/projects/2/refs/master/commits/2ab7834c/status.json?token=verySecret")} end describe :build_page do - it { expect(@service.build_page("2ab7834c")).to eq("http://ci.gitlab.org/projects/2/commits/2ab7834c")} + it { expect(@service.build_page("2ab7834c", 'master')).to eq("http://ci.gitlab.org/projects/2/refs/master/commits/2ab7834c")} end end end |