Skip to content

Instantly share code, notes, and snippets.

@justinko
Created November 8, 2012 19:52
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 justinko/4041106 to your computer and use it in GitHub Desktop.
Save justinko/4041106 to your computer and use it in GitHub Desktop.
Do not make `describe` global
class Spec
def describe
puts 'described'
end
end
Spec.new.instance_eval(IO.readlines('my_spec.rb').join) # => 'described'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment