Class: Transpec::Syntax::ShouldReceive::AllowRecordBuilder
Instance Method Summary
collapse
#new_syntax
build, #build, param_names
Instance Method Details
#old_syntax ⇒ Object
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_name ⇒ Object
198
199
200
|
# File 'lib/transpec/syntax/should_receive.rb', line 198
def syntax_name
'allow'
end
|