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.6.1 lib/mocha/in_state_ordering_constraint.rb
mocha-2.6.0 lib/mocha/in_state_ordering_constraint.rb
mocha-2.5.0 lib/mocha/in_state_ordering_constraint.rb
mocha-2.4.5 lib/mocha/in_state_ordering_constraint.rb
mocha-2.4.4 lib/mocha/in_state_ordering_constraint.rb
mocha-2.4.3 lib/mocha/in_state_ordering_constraint.rb
mocha-2.4.2 lib/mocha/in_state_ordering_constraint.rb
mocha-2.4.1 lib/mocha/in_state_ordering_constraint.rb
mocha-2.4.0 lib/mocha/in_state_ordering_constraint.rb
mocha-2.2.0 lib/mocha/in_state_ordering_constraint.rb
mocha-2.1.0 lib/mocha/in_state_ordering_constraint.rb
mocha-2.0.4 lib/mocha/in_state_ordering_constraint.rb
mocha-2.0.3 lib/mocha/in_state_ordering_constraint.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/mocha-2.0.2/lib/mocha/in_state_ordering_constraint.rb
mocha-2.0.2 lib/mocha/in_state_ordering_constraint.rb
mocha-1.16.1 lib/mocha/in_state_ordering_constraint.rb
mocha-1.15.1 lib/mocha/in_state_ordering_constraint.rb
mocha-2.0.1 lib/mocha/in_state_ordering_constraint.rb
mocha-2.0.0 lib/mocha/in_state_ordering_constraint.rb
mocha-1.16.0 lib/mocha/in_state_ordering_constraint.rb