Sha256: b8a11f652c170df8d79211fa4d1e0755f792291230aaeda6e14164dcdfc43256

Contents?: true

Size: 291 Bytes

Versions: 39

Compression:

Stored size: 291 Bytes

Contents

module Mocha
  class InStateOrderingConstraint
    def initialize(state_predicate)
      @state_predicate = state_predicate
    end

    def allows_invocation_now?
      @state_predicate.active?
    end

    def mocha_inspect
      "when #{@state_predicate.mocha_inspect}"
    end
  end
end

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
mocha-2.0.0.alpha.1 lib/mocha/in_state_ordering_constraint.rb
mocha-2.0.0.alpha lib/mocha/in_state_ordering_constraint.rb
mocha-1.15.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.14.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.13.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.12.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.11.2 lib/mocha/in_state_ordering_constraint.rb
mocha-1.11.1 lib/mocha/in_state_ordering_constraint.rb
mocha-1.11.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.10.2 lib/mocha/in_state_ordering_constraint.rb
mocha-1.10.1 lib/mocha/in_state_ordering_constraint.rb
mocha-1.10.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.10.0.beta.1 lib/mocha/in_state_ordering_constraint.rb
mocha-1.10.0.alpha lib/mocha/in_state_ordering_constraint.rb
mocha-1.9.0 lib/mocha/in_state_ordering_constraint.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/mocha-1.8.0/lib/mocha/in_state_ordering_constraint.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/mocha-1.8.0/lib/mocha/in_state_ordering_constraint.rb
mocha-1.8.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.7.0 lib/mocha/in_state_ordering_constraint.rb