Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Example
- attr_reader :context_name
- def initialize(context_name, &block)
- @context_name = context_name
- instance_eval &block
- end
- def expect(result)
- self
- end
- def to(expectation)
- self
- end
- def eq(expectation)
- end
- end
- describe NumberService do
- describe '#number' do
- it 'returns 12' do
- expect(NumberService.new.number).to eq(12)
- end
- end
- end
Add Comment
Please, Sign In to add comment