diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-09 10:28:49 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-09 10:28:49 +0300 |
commit | 61d4d62aafedaa29c4657e3a43865bcb453b34ac (patch) | |
tree | 3d6879cb28ca320136bc7fd7b7c1a0f6f30974d0 | |
parent | 23551e161616251ec5792a82280df70226b73262 (diff) | |
download | gitlab-ci-61d4d62aafedaa29c4657e3a43865bcb453b34ac.tar.gz |
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | spec/models/build_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index 88cd466..9e932ab 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -312,7 +312,10 @@ describe Build do end context 'if the building process has started' do - before { build.finished_at = nil } + before do + build.started_at = Time.now - 1.minute + build.finished_at = nil + end it { should be_a(Float) } it { should > 0.0 } |