Skip to content

Instantly share code, notes, and snippets.

@harrietty
Created February 16, 2019 17:37
Show Gist options
  • Save harrietty/d877cb47b6ad8f97e85ba05290f10fd4 to your computer and use it in GitHub Desktop.
Save harrietty/d877cb47b6ad8f97e85ba05290f10fd4 to your computer and use it in GitHub Desktop.
class FooSpec
def self.describe(message, &block)
puts message
FooSpec.class_eval &block
end
def self.context(message, &block)
puts message
FooSpec.class_eval &block
end
def self.it(message, &block)
puts message
puts 'PASS!'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment