time-warp
time-warp copied to clipboard
Ruby gem to warp time in tests
pretend_now_is 1.hour ago do object.create end inside that block, object will have the timestamp from last hour, but after that block the timestamp will be shifted to the current time....
> rake aborted! > TypeError: superclass mismatch for class Test > /home/tim/.rvm/gems/ruby-2.3.0/gems/minitest-5.10.1/lib/minitest/test.rb:10:in `' > /home/tim/.rvm/gems/ruby-2.3.0/gems/minitest-5.10.1/lib/minitest/test.rb:3:in `' > /home/tim/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require' > /home/tim/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require' > /home/tim/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency' > /home/tim/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'...
Hi there, Just wondering if this gem is meant to work with rails 4.1 and 4.2. Our rspec broke after we upgraded from rails 4.0.1. I note that these newer...
The MiniTest support that was added from issue #5 has been causing some trouble for me. It errors out with: `/Users/jon/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/test_case.rb:14:in `': uninitialized constant MiniTest::Assertion (NameError)` I am not using...