Class: Mocha::InStateOrderingConstraint

### Home Classes Methods

### In Files

- lib/mocha/in_state_ordering_constraint.rb

### Parent

Object

### Methods

- ::new
- #allows_invocation_now?
- #mocha_inspect

### Files

- COPYING
- README

### Class/Module Index

Quicksearch

- Mocha
- Mocha::API
- Mocha::AnyInstanceMethod
- Mocha::ArgumentIterator
- Mocha::ArrayMethods
- Mocha::BacktraceFilter
- Mocha::Cardinality
- Mocha::Central
- Mocha::ChangeStateSideEffect
- Mocha::ClassMethod
- Mocha::ClassMethods
- Mocha::Configuration
- Mocha::DateMethods
- Mocha::DefaultName
- Mocha::Deprecation
- Mocha::Expectation
- Mocha::ExpectationError
- Mocha::ExpectationList
- Mocha::HashMethods
- Mocha::ImpersonatingAnyInstanceName
- Mocha::ImpersonatingName
- Mocha::InStateOrderingConstraint
- Mocha::InstanceMethod
- Mocha::Integration
- Mocha::Integration::MiniTest
- Mocha::Integration::MiniTest::AssertionCounter
- Mocha::Integration::MiniTest::Version131AndAbove
- Mocha::Integration::TestUnit
- Mocha::Integration::TestUnit::AssertionCounter
- Mocha::Integration::TestUnit::GemVersion200
- Mocha::Integration::TestUnit::GemVersion201AndAbove
- Mocha::Integration::TestUnit::RubyVersion185AndBelow
- Mocha::Integration::TestUnit::RubyVersion186AndAbove
- Mocha::Logger
- Mocha::MethodMatcher
- Mocha::Mock
- Mocha::Mockery
- Mocha::ModuleMethod
- Mocha::Name
- Mocha::ObjectMethods
- Mocha::ParameterMatchers
- Mocha::ParametersMatcher
- Mocha::PrettyParameters
- Mocha::Sequence
- Mocha::Sequence::InSequenceOrderingConstraint
- Mocha::StateMachine
- Mocha::StringMethods
- Mocha::StubbingError
- Mocha::TimeMethods
- Mocha::UnexpectedInvocation
- MiniTest
- MiniTest::Unit
- MiniTest::Unit::TestCase
- Test
- Test::Unit
- Test::Unit::TestCase
- Array
- Date
- Hash
- Object
- String
- Time

No matching classes.

# Mocha::InStateOrderingConstraint

### Public Class Methods

new(state_predicate) click to toggle source

    # File lib/mocha/in_state_ordering_constraint.rb, line 5
    def initialize(state_predicate)
      @state_predicate = state_predicate
    end

### Public Instance Methods

allows_invocation_now?() click to toggle source

    # File lib/mocha/in_state_ordering_constraint.rb, line 9
    def allows_invocation_now?
      @state_predicate.active?
    end

mocha_inspect() click to toggle source

    # File lib/mocha/in_state_ordering_constraint.rb, line 13
    def mocha_inspect
      "when #{@state_predicate.mocha_inspect}"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.