diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-06 22:19:23 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 13:38:01 +0900 |
commit | 065af93d6ba94555857e7e9f2b55c5fba44ed302 (patch) | |
tree | 5b65dec0893274f29130077079cdb3897ff27b97 /spec/models/environment_spec.rb | |
parent | 060c56870a16d5a17e4c21926110228970665aaa (diff) | |
download | gitlab-ce-065af93d6ba94555857e7e9f2b55c5fba44ed302.tar.gz |
Fix spec coding style
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r-- | spec/models/environment_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index 0dfdf105905..55ec1bc9e90 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -89,7 +89,7 @@ describe Environment do context 'when the latest deployment is successful' do let!(:deployment) { create(:deployment, :start, :success, environment: environment) } - it { expect(subject.to_i).to eq(deployment.finished_at.to_i) } + it { expect(subject).to be_within(1.second).of(deployment.finished_at) } end context 'when the latest deployment failed' do |