Commit 78d05902bad6e03ec57073f458c5d2735986f065
1 parent
39d38a25
Exists in
master
and in
1 other branch
avoid some failure on within to short in test between date
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
Gemfile
... | ... | @@ -81,7 +81,7 @@ gem 'ri_cal' |
81 | 81 | gem 'yajl-ruby', :require => "yajl" |
82 | 82 | |
83 | 83 | group :development, :test do |
84 | - gem 'rspec-rails', '~> 2.6' | |
84 | + gem 'rspec-rails' | |
85 | 85 | gem 'webmock', :require => false |
86 | 86 | gem 'airbrake', :require => false |
87 | 87 | gem 'ruby-debug', :platform => :mri_18 | ... | ... |
Gemfile.lock
spec/interactors/problem_updater_cache_spec.rb
... | ... | @@ -70,7 +70,7 @@ describe ProblemUpdaterCache do |
70 | 70 | end |
71 | 71 | |
72 | 72 | it 'update first_notice_at' do |
73 | - expect(problem.first_notice_at.to_i).to be_within(1).of(notice.created_at.to_i) | |
73 | + expect(problem.first_notice_at.to_i).to be_within(2).of(notice.created_at.to_i) | |
74 | 74 | end |
75 | 75 | |
76 | 76 | it 'update last_notice_at' do | ... | ... |