Commit 78d05902bad6e03ec57073f458c5d2735986f065

Authored by Cyril Mougel
1 parent 39d38a25
Exists in master and in 1 other branch production

avoid some failure on within to short in test between date

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
... ... @@ -428,7 +428,7 @@ DEPENDENCIES
428 428 rails_autolink
429 429 railties (~> 3.2.14)
430 430 ri_cal
431   - rspec-rails (~> 2.6)
  431 + rspec-rails
432 432 ruby-debug
433 433 ruby-fogbugz
434 434 rushover
... ...
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
... ...