Method: Transpec::Syntax::Should::RecordBuilder#new_syntax
- Defined in:
- lib/transpec/syntax/should.rb
#new_syntax ⇒ Object
78 79 80 81 82 83 84 85 86 |
# File 'lib/transpec/syntax/should.rb', line 78 def new_syntax syntax = if should.proc_subject? 'expect { }.' else 'expect(obj).' end syntax << (should.positive? ? 'to' : negative_form_of_to) end |