Method: Transpec::Syntax::Should::RecordBuilder#old_syntax
- Defined in:
- lib/transpec/syntax/should.rb
#old_syntax ⇒ Object
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/transpec/syntax/should.rb', line 67 def old_syntax syntax = if should.proc_subject? "#{should.name_of_subject_method_taking_block} { }.should" else 'obj.should' end syntax << '_not' unless should.positive? syntax end |