Class: Transpec::Syntax::ShouldReceive::AllowRecord
- Inherits:
-
ExpectBaseRecord
- Object
- Record
- ExpectBaseRecord
- Transpec::Syntax::ShouldReceive::AllowRecord
- Defined in:
- lib/transpec/syntax/should_receive.rb
Constant Summary
Constants inherited from Record
Record::OVERRIDDE_FORBIDDEN_METHODS
Instance Attribute Summary
Attributes inherited from Record
#annotation, #converted_syntax_type, #original_syntax_type
Instance Method Summary collapse
Methods inherited from ExpectBaseRecord
#build_converted_syntax, #initialize
Methods inherited from Record
#==, #converted_syntax, #hash, #initialize, #original_syntax, #to_s
Constructor Details
This class inherits a constructor from Transpec::Syntax::ShouldReceive::ExpectBaseRecord
Instance Method Details
#build_original_syntax ⇒ Object
206 207 208 209 210 211 |
# File 'lib/transpec/syntax/should_receive.rb', line 206 def build_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
202 203 204 |
# File 'lib/transpec/syntax/should_receive.rb', line 202 def syntax_name 'allow' end |