Created
January 12, 2018 15:28
-
-
Save pdabrowski6/3b419afc8c1bf2d12c1c1774b3f64b2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Describe | |
attr_reader :context_name | |
def initialize(context_name, &block) | |
@context_name = context_name | |
instance_eval &block | |
end | |
def describe(context_name, &block) | |
Describe.new(context_name, &block) | |
end | |
def it(context_name, &block) | |
end | |
end | |
def describe(context_name, &block) | |
Describe.new(context_name, &block) | |
end | |
describe NumberService do | |
describe '#number' do | |
it 'returns 12' do | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment