Class: Transpec::Syntax::ShouldReceive::AllowRecordBuilder

Inherits:
ExpectBaseRecordBuilder show all
Defined in:
lib/transpec/syntax/should_receive.rb

Instance Method Summary collapse

Methods inherited from ExpectBaseRecordBuilder

#new_syntax

Methods inherited from RecordBuilder

build, #build, param_names

Instance Method Details

#old_syntaxObject



202
203
204
205
206
207
# File 'lib/transpec/syntax/should_receive.rb', line 202

def old_syntax
  syntax = super
  syntax << '.any_number_of_times' if should_receive.any_number_of_times?
  syntax << '.at_least(0)' if should_receive.at_least_zero?
  syntax
end

#syntax_nameObject



198
199
200
# File 'lib/transpec/syntax/should_receive.rb', line 198

def syntax_name
  'allow'
end