Skip to content

Instantly share code, notes, and snippets.

@pingles
Created July 20, 2010 23:04
Show Gist options
  • Save pingles/483737 to your computer and use it in GitHub Desktop.
Save pingles/483737 to your computer and use it in GitHub Desktop.
describe "Word Count" do
before(:all) do
job_name = "Word Count"
@runner = Mandy::TestRunner.new(job_name)
end
describe "mapper" do
it "splits on spaces and emits words" do
@runner.map("Fake carl") do |mapper|
mapper.should_receive(:emit).with('fake', 1)
mapper.should_receive(:emit).with('carl', 1)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment