APIdock / RSpec
/
Browse About
method

never

1.3.0 - Show latest stable - Class: Spec::Mocks::MessageExpectation
never()
public

No documentation available.

# File lib/spec/mocks/message_expectation.rb, line 285
      def never
        @expected_received_count = 0
        self
      end

Related methods

  • Instance methods
  • advise
  • any_number_of_times
  • at_least
  • at_most
  • exactly
  • expected_messages_received?
  • generate_error
  • ignoring_args?
  • matches_at_least_count?
  • matches_at_most_count?
  • matches_exact_count?
  • matches_name?
  • matches_name_but_not_args
  • negative_expectation_for?
  • never
  • once
  • ordered
  • similar_messages
  • times
  • twice
  • verify_messages_received
  • with
  • Protected methods
  • protectedclear_actual_received_count!
  • protectedset_expected_received_count
APIdock API Documentation Browser

Implement the SPACE framework the right way with Swarmia.

© 2026 APIdock