Skip to content

Instantly share code, notes, and snippets.

@wbailey
Created March 28, 2011 05:32
Show Gist options
  • Save wbailey/890042 to your computer and use it in GitHub Desktop.
Save wbailey/890042 to your computer and use it in GitHub Desktop.
module Kata
module Base
describe "DSL" do
before :each do
@summary = 'sample summary'
[...]
end
describe "#kata" do
[...]
it "displays the summary" do
output = capture_stdout do
lambda {
kata @summary
}.should_not raise_exception
end
output.should have_summary @display_summary
end
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment