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
11 12 13 |
# File 'lib/transpec/syntax/mixin/allow_no_message.rb', line 11 def any_number_of_times? || at_least_zero? end |
#remove_allowance_for_no_message! ⇒ Object
15 16 17 18 |
# File 'lib/transpec/syntax/mixin/allow_no_message.rb', line 15 def remove_any_number_of_times! remove_at_least_zero! end |