Fix intermittently failing spec
* `fog_spec.rb:328` fails intermittently due to a race condition * Use [TimeCop][1] gem to freeze time during the spec * Extract magic number * Break long line [1]: https://github.com/travisjeffery/timecop ![TimeCop Poster](http://www.deconstructingmovies.com/wp-content/uploads/2014/03/timecop-poster.jpg)
Showing
... | @@ -17,4 +17,5 @@ gem 'pry' | ... | @@ -17,4 +17,5 @@ gem 'pry' |
group :development, :test do | group :development, :test do | ||
gem 'mime-types', '~> 1.16' | gem 'mime-types', '~> 1.16' | ||
gem 'builder', '~> 3.1.4' | gem 'builder', '~> 3.1.4' | ||
gem 'timecop', '~> 0.7.1' | |||
end | end |
Please
register
or
sign in
to comment