Skip to content

Instantly share code, notes, and snippets.

@wanderingmatt
Created April 30, 2009 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wanderingmatt/104254 to your computer and use it in GitHub Desktop.
Save wanderingmatt/104254 to your computer and use it in GitHub Desktop.
def @wb.puts *args; end
def test_puts_got_called
def @wb.puts arg
@putss ||= []
@putss << arg if arg
@putss
end
@wb.recipe do
work :name, :one do
'** name'
end
work :one do
'** one'
end
end
@wb.run(:name)
assert_equal [], @wb.puts(nil)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment