Skip to content

Instantly share code, notes, and snippets.

@DouglasMeyer
Created April 18, 2011 21:14
Show Gist options
  • Save DouglasMeyer/926192 to your computer and use it in GitHub Desktop.
Save DouglasMeyer/926192 to your computer and use it in GitHub Desktop.
SETUP
riot sanity test generic context
SETUP
- should get_mocked_once: get_mocked_once() Called 0 times. Expected 1 times.
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