Skip to content

Instantly share code, notes, and snippets.

@agmcleod
Created July 29, 2011 23:12
Show Gist options
  • Save agmcleod/1114944 to your computer and use it in GitHub Desktop.
Save agmcleod/1114944 to your computer and use it in GitHub Desktop.
There's got to be a better way to do this cucumber step
# Document being an active record model, and the test_data method returning a string.
# Is there a smarter way to organize this? Should i just use a local method in this step def file?
When /^I copy and paste a document$/ do
fill_in "content", Document.test_data
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment