Skip to content

Instantly share code, notes, and snippets.

@goosmurf
Created March 16, 2009 10:23
Show Gist options
  • Save goosmurf/79820 to your computer and use it in GitHub Desktop.
Save goosmurf/79820 to your computer and use it in GitHub Desktop.
describe "playing with blocks" do
it "should check the block" do
log_mock = mock("Logger")
log_mock.should_receive(:something) { |*args| puts args.size }
log_mock.something { "blah" }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment