summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-05-20 11:37:37 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-05-20 11:37:37 +0300
commit1c9337600dd62fbf333cc61f937e6e5d50dee5c9 (patch)
tree3def9b680bad496e4d12d694845a7c2696c3901f
parent74935080d6580c0ee9a7f7d93fd65542e1643694 (diff)
downloadgitlab-ci-nice-badges.tar.gz
Fix testsnice-badges
-rw-r--r--spec/services/image_for_build_service_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/services/image_for_build_service_spec.rb b/spec/services/image_for_build_service_spec.rb
index 01a48e7..4c70941 100644
--- a/spec/services/image_for_build_service_spec.rb
+++ b/spec/services/image_for_build_service_spec.rb
@@ -14,16 +14,16 @@ describe ImageForBuildService do
let(:image) { service.execute(project, ref: 'master') }
it { image.should be_kind_of(OpenStruct) }
- it { image.path.to_s.should include('public/running.png') }
- it { image.name.should == 'running.png' }
+ it { image.path.to_s.should include('public/build-running.svg') }
+ it { image.name.should == 'build-running.svg' }
end
context 'unknown branch name' do
let(:image) { service.execute(project, ref: 'feature') }
it { image.should be_kind_of(OpenStruct) }
- it { image.path.to_s.should include('public/unknown.png') }
- it { image.name.should == 'unknown.png' }
+ it { image.path.to_s.should include('public/build-unknown.svg') }
+ it { image.name.should == 'build-unknown.svg' }
end
context 'commit sha' do
@@ -31,16 +31,16 @@ describe ImageForBuildService do
let(:image) { service.execute(project, sha: build.sha) }
it { image.should be_kind_of(OpenStruct) }
- it { image.path.to_s.should include('public/running.png') }
- it { image.name.should == 'running.png' }
+ it { image.path.to_s.should include('public/build-running.svg') }
+ it { image.name.should == 'build-running.svg' }
end
context 'unknown commit sha' do
let(:image) { service.execute(project, sha: '0000000') }
it { image.should be_kind_of(OpenStruct) }
- it { image.path.to_s.should include('public/unknown.png') }
- it { image.name.should == 'unknown.png' }
+ it { image.path.to_s.should include('public/build-unknown.svg') }
+ it { image.name.should == 'build-unknown.svg' }
end
end
end