Skip to content

Instantly share code, notes, and snippets.

@thumblemonks
Created May 19, 2010 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thumblemonks/406541 to your computer and use it in GitHub Desktop.
Save thumblemonks/406541 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'riot'
require 'riot/rr'
context "foo" do
asserts("your mom") { stub(Time).now { Time.parse("1970/1/1") }; Time.now }
end
# foo
# ! asserts your mom: stack level too deep
#
# 0 passes, 0 failures, 1 errors in 0.100095 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment