Skip to content

Instantly share code, notes, and snippets.

@hakanensari
Created March 23, 2010 15:07
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 hakanensari/341270 to your computer and use it in GitHub Desktop.
Save hakanensari/341270 to your computer and use it in GitHub Desktop.
Then /^inspect #{capture_model}$/ do |name|
p model(name).inspect
end
Then /^inspect the (\w+) of #{capture_model}$/ do |association, name|
p model(name).send(association).inspect
end
Then /^eval "([^"]+)"$/ do |ruby_code|
p instance_eval(ruby_code)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment