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,7 +81,7 @@ gem 'ri_cal' | ||
| 81 | gem 'yajl-ruby', :require => "yajl" | 81 | gem 'yajl-ruby', :require => "yajl" |
| 82 | 82 | ||
| 83 | group :development, :test do | 83 | group :development, :test do |
| 84 | - gem 'rspec-rails', '~> 2.6' | 84 | + gem 'rspec-rails' |
| 85 | gem 'webmock', :require => false | 85 | gem 'webmock', :require => false |
| 86 | gem 'airbrake', :require => false | 86 | gem 'airbrake', :require => false |
| 87 | gem 'ruby-debug', :platform => :mri_18 | 87 | gem 'ruby-debug', :platform => :mri_18 |
Gemfile.lock
| @@ -428,7 +428,7 @@ DEPENDENCIES | @@ -428,7 +428,7 @@ DEPENDENCIES | ||
| 428 | rails_autolink | 428 | rails_autolink |
| 429 | railties (~> 3.2.14) | 429 | railties (~> 3.2.14) |
| 430 | ri_cal | 430 | ri_cal |
| 431 | - rspec-rails (~> 2.6) | 431 | + rspec-rails |
| 432 | ruby-debug | 432 | ruby-debug |
| 433 | ruby-fogbugz | 433 | ruby-fogbugz |
| 434 | rushover | 434 | rushover |
spec/interactors/problem_updater_cache_spec.rb
| @@ -70,7 +70,7 @@ describe ProblemUpdaterCache do | @@ -70,7 +70,7 @@ describe ProblemUpdaterCache do | ||
| 70 | end | 70 | end |
| 71 | 71 | ||
| 72 | it 'update first_notice_at' do | 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 | end | 74 | end |
| 75 | 75 | ||
| 76 | it 'update last_notice_at' do | 76 | it 'update last_notice_at' do |