Class: Transpec::Syntax::ShouldReceive::AllowRecord
- Inherits:
-
ExpectBaseRecord
- Object
- Record
- ExpectBaseRecord
- Transpec::Syntax::ShouldReceive::AllowRecord
- Defined in:
- lib/transpec/syntax/should_receive.rb
Instance Attribute Summary
Attributes inherited from Record
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_syntax ⇒ Object
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_name ⇒ Object
200 201 202 |
# File 'lib/transpec/syntax/should_receive.rb', line 200 def syntax_name 'allow' end |