Class: Transpec::Syntax::ShouldReceive::AllowRecord

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

Instance Attribute Summary

Attributes inherited from Record

#converted_syntax

Instance Method Summary collapse

Methods inherited from ExpectBaseRecord

#converted_syntax, #initialize

Methods inherited from Record

#==, #hash, #initialize, #to_s

Constructor Details

This class inherits a constructor from Transpec::Syntax::ShouldReceive::ExpectBaseRecord

Instance Method Details

#original_syntaxObject



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

def original_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



200
201
202
# File 'lib/transpec/syntax/should_receive.rb', line 200

def syntax_name
  'allow'
end