Repository is archived
No commit activity in last 3 years
No release in over 3 years
Righting wrongs in your test suite with time travel!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

QuantumLeap

Build Status Code Climate

Righting wrongs in your test suite with time travel!

QuantumLeap lets you change the current time in your tests.

I can't promise you'll meet any historical figures, however.

Installation

Add this line to your application's Gemfile:

gem 'quantum_leap'

Or install it yourself as:

$ gem install quantum_leap

Usage

Quantum.leap(Time.new(1956, 9, 13))
sam.must_be_kind_of(Pilot)
sam.must_win_baseball_game
Quantum.leap_back

Or with a block:

Quantum.leap(Time.new(1974, 10, 24)) do
  sam.must_be_kind_of(Boxer)
  sam.must_win_the_championship
end