Module: Transpec::Syntax::Mixin::AllowNoMessage
- Includes:
- AST::Sexp
- Included in:
- Transpec::Syntax::MethodStub, ShouldReceive
- Defined in:
- lib/transpec/syntax/mixin/allow_no_message.rb
Instance Method Summary collapse
Instance Method Details
#allow_no_message? ⇒ Boolean
9 10 11 |
# File 'lib/transpec/syntax/mixin/allow_no_message.rb', line 9 def any_number_of_times? || at_least_zero? end |
#remove_allowance_for_no_message! ⇒ Object
13 14 15 16 |
# File 'lib/transpec/syntax/mixin/allow_no_message.rb', line 13 def remove_any_number_of_times! remove_at_least_zero! end |