Skip to content

Commit

Permalink
avoid some failure on within to short in test between date
Browse files Browse the repository at this point in the history
  • Loading branch information
shingara committed Oct 14, 2013
1 parent 39d38a2 commit 78d0590
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ gem 'ri_cal'
gem 'yajl-ruby', :require => "yajl"

group :development, :test do
gem 'rspec-rails', '~> 2.6'
gem 'rspec-rails'
gem 'webmock', :require => false
gem 'airbrake', :require => false
gem 'ruby-debug', :platform => :mri_18
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ DEPENDENCIES
rails_autolink
railties (~> 3.2.14)
ri_cal
rspec-rails (~> 2.6)
rspec-rails
ruby-debug
ruby-fogbugz
rushover
Expand Down
2 changes: 1 addition & 1 deletion spec/interactors/problem_updater_cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
end

it 'update first_notice_at' do
expect(problem.first_notice_at.to_i).to be_within(1).of(notice.created_at.to_i)
expect(problem.first_notice_at.to_i).to be_within(2).of(notice.created_at.to_i)
end

it 'update last_notice_at' do
Expand Down

0 comments on commit 78d0590

Please sign in to comment.