class Transpec::Syntax::MethodStub::NoMessageAllowanceRecordBuilder

Public Instance Methods

base_syntax() click to toggle source
# File lib/transpec/syntax/method_stub.rb, line 233
def base_syntax
  "obj.#{method_stub.method_name}(:message)"
end
new_syntax() click to toggle source
# File lib/transpec/syntax/method_stub.rb, line 229
def new_syntax
  base_syntax
end
old_syntax() click to toggle source
# File lib/transpec/syntax/method_stub.rb, line 222
def old_syntax
  syntax = base_syntax
  syntax << '.any_number_of_times' if method_stub.any_number_of_times?
  syntax << '.at_least(0)' if method_stub.at_least_zero?
  syntax
end