Created
April 18, 2011 21:14
-
-
Save DouglasMeyer/926192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SETUP | |
riot sanity test generic context | |
SETUP | |
- should get_mocked_once: get_mocked_once() Called 0 times. Expected 1 times. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'riot' | |
require 'riot/rr' | |
context "riot sanity test" do | |
setup do | |
puts "SETUP" | |
Object.new.tap do |obj| | |
mock(obj).get_mocked_once{ true } | |
end | |
end | |
#un-comment this next line and the tests magically pass | |
#should :get_mocked_once | |
context "generic context" do | |
should :get_mocked_once | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment