Created
February 16, 2019 17:37
-
-
Save harrietty/d877cb47b6ad8f97e85ba05290f10fd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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