class Transpec::Syntax::OnelinerShould::ExpectRecordBuilder
Public Instance Methods
new_syntax()
click to toggle source
# File lib/transpec/syntax/oneliner_should.rb, line 138 def new_syntax syntax = 'it { is_expected.' syntax << (should.positive? ? 'to' : negative_form_of_to) syntax << ' ... }' end
old_syntax()
click to toggle source
# File lib/transpec/syntax/oneliner_should.rb, line 132 def old_syntax syntax = 'it { should' syntax << '_not' unless should.positive? syntax << ' ... }' end