Class: Transpec::Syntax::OnelinerShould::ExpectRecordBuilder
Instance Method Summary
collapse
build, #build, param_names
Instance Method Details
#new_syntax ⇒ Object
136
137
138
139
140
|
# File 'lib/transpec/syntax/oneliner_should.rb', line 136
def new_syntax
syntax = 'it { is_expected.'
syntax << (should.positive? ? 'to' : negative_form_of_to)
syntax << ' ... }'
end
|
#old_syntax ⇒ Object
130
131
132
133
134
|
# File 'lib/transpec/syntax/oneliner_should.rb', line 130
def old_syntax
syntax = 'it { should'
syntax << '_not' unless should.positive?
syntax << ' ... }'
end
|