diff options
| author | Alban Peignier | 2018-05-11 23:38:09 +0200 |
|---|---|---|
| committer | Alban Peignier | 2018-05-11 23:38:09 +0200 |
| commit | 261c9de605d98d6d66d81004103e998175895c82 (patch) | |
| tree | 9108bb996f43c7d0608a4822097edf5191b06b8c /spec | |
| parent | b339918561c936b8055444cbbc734e4941d48215 (diff) | |
| download | chouette-core-261c9de605d98d6d66d81004103e998175895c82.tar.bz2 | |
Avoid time shift in User specs
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 51ccfccd3..17fa38d4a 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -90,8 +90,8 @@ RSpec.describe User, :type => :model do expect(user.name).to eq('Alban Peignier') expect(user.email).to eq('alban.peignier@af83.com') - expect(user.updated_at.utc).to be_within(1.second).of Time.now - expect(user.synced_at.utc).to be_within(1.second).of Time.now + expect(user.updated_at.utc).to be_within(3.second).of Time.now + expect(user.synced_at.utc).to be_within(3.second).of Time.now end it 'should update organisation assignement' do |
