Module: Transpec::Syntax::AbleToAllowNoMessage

Includes:
AST::Sexp
Included in:
MethodStub, ShouldReceive
Defined in:
lib/transpec/syntax/able_to_allow_no_message.rb

Instance Method Summary collapse

Instance Method Details

#allow_no_message?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/transpec/syntax/able_to_allow_no_message.rb', line 10

def allow_no_message?
  any_number_of_times? || at_least_zero?
end

#remove_allowance_for_no_message!Object



14
15
16
17
# File 'lib/transpec/syntax/able_to_allow_no_message.rb', line 14

def remove_allowance_for_no_message!
  remove_any_number_of_times!
  remove_at_least_zero!
end