Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

mattreduce/quantum_leap

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Righting wrongs in your test suite with time travel!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages