summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-07-01 10:56:56 +0300
committerValery Sizov <vsv2711@gmail.com>2015-07-01 11:01:23 +0300
commit25729b09ed352fcb8ef505f58edfc0f97c4ef42b (patch)
tree4016ebac73b98e0bdf9a2acd8123cc0ab8ab733e /spec/models/commit_spec.rb
parent859e0b41ee10d7ca23297fdd964eca5949e25c12 (diff)
downloadgitlab-ci-25729b09ed352fcb8ef505f58edfc0f97c4ef42b.tar.gz
Rounded coverage on commit page
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index e1969c4..76d3178 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -167,14 +167,14 @@ describe Commit do
it "calculates average when there are two builds with coverage" do
FactoryGirl.create :build, coverage: 30, commit: commit
FactoryGirl.create :build, coverage: 40, commit: commit
- commit.coverage.should == 35.0
+ commit.coverage.should == "35.00"
end
it "calculates average when there are two builds with coverage and one with nil" do
FactoryGirl.create :build, coverage: 30, commit: commit
FactoryGirl.create :build, coverage: 40, commit: commit
FactoryGirl.create :build, commit: commit
- commit.coverage.should == 35.0
+ commit.coverage.should == "35.00"
end
it "calculates average when there is one build without coverage" do