class Transpec::Syntax::Should::RecordBuilder
Public Instance Methods
new_syntax()
click to toggle source
# 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
old_syntax()
click to toggle source
# 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