From 78d05902bad6e03ec57073f458c5d2735986f065 Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Mon, 14 Oct 2013 17:40:34 +0200 Subject: [PATCH] avoid some failure on within to short in test between date --- Gemfile | 2 +- Gemfile.lock | 2 +- spec/interactors/problem_updater_cache_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index f50f1a6a9..6727db5b0 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index cf86d52c6..87e94a458 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -428,7 +428,7 @@ DEPENDENCIES rails_autolink railties (~> 3.2.14) ri_cal - rspec-rails (~> 2.6) + rspec-rails ruby-debug ruby-fogbugz rushover diff --git a/spec/interactors/problem_updater_cache_spec.rb b/spec/interactors/problem_updater_cache_spec.rb index 74796bae2..dca83810e 100644 --- a/spec/interactors/problem_updater_cache_spec.rb +++ b/spec/interactors/problem_updater_cache_spec.rb @@ -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