Sha256: a70a58aea0c167730fd02be9624d412cf30c9940590172f88ac7fa3f61fa119b

Contents?: true

Size: 223 Bytes

Versions: 41

Compression:

Stored size: 223 Bytes

Contents

module Mocha
  class ChangeStateSideEffect
    def initialize(state)
      @state = state
    end

    def perform
      @state.activate
    end

    def mocha_inspect
      "then #{@state.mocha_inspect}"
    end
  end
end

Version data entries

41 entries across 41 versions & 3 rubygems

Version Path
mocha-2.7.1 lib/mocha/change_state_side_effect.rb
mocha-2.7.0 lib/mocha/change_state_side_effect.rb
mocha-2.6.1 lib/mocha/change_state_side_effect.rb
mocha-2.6.0 lib/mocha/change_state_side_effect.rb
mocha-2.5.0 lib/mocha/change_state_side_effect.rb
mocha-2.4.5 lib/mocha/change_state_side_effect.rb
mocha-2.4.4 lib/mocha/change_state_side_effect.rb
mocha-2.4.3 lib/mocha/change_state_side_effect.rb
mocha-2.4.2 lib/mocha/change_state_side_effect.rb
mocha-2.4.1 lib/mocha/change_state_side_effect.rb
mocha-2.4.0 lib/mocha/change_state_side_effect.rb
mocha-2.2.0 lib/mocha/change_state_side_effect.rb
mocha-2.1.0 lib/mocha/change_state_side_effect.rb
mocha-2.0.4 lib/mocha/change_state_side_effect.rb
mocha-2.0.3 lib/mocha/change_state_side_effect.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/mocha-2.0.2/lib/mocha/change_state_side_effect.rb
mocha-2.0.2 lib/mocha/change_state_side_effect.rb
mocha-1.16.1 lib/mocha/change_state_side_effect.rb
mocha-1.15.1 lib/mocha/change_state_side_effect.rb
mocha-2.0.1 lib/mocha/change_state_side_effect.rb