Sha256: d20133cb11e8ea4477855330492b5f2d3e42647565cea827fd5fd81a2b2eddf9

Contents?: true

Size: 465 Bytes

Versions: 206

Compression:

Stored size: 465 Bytes

Contents

## rspec-mocks-2.6

### `any_instance`

Set method stubs and message expectations on any instance of a class:

    class Foo; end
    Foo.any_instance.stub(:bar) { 'bar' }
    Foo.new.bar # => 'bar'

## rspec-mocks-2.2

### `require "rspec/mocks/standalone"`

Sets up top-level environment to explore rspec-mocks. Mostly useful in irb:

    $ irb
    > require 'rspec/mocks/standalone'
    > foo = double()
    > foo.stub(:bar) { :baz }
    > foo.bar
      => :baz

Version data entries

206 entries across 152 versions & 26 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-mocks-2.14.6/features/Upgrade.md
classiccms-0.7.5 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.7.5 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.7.4 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.7.4 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.7.3 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.7.3 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
rspec-mocks-2.99.4 features/Upgrade.md
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-mocks-2.14.6/features/Upgrade.md
rspec-mocks-2.99.3 features/Upgrade.md
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-mocks-2.13.0/features/Upgrade.md
rspec-mocks-2.99.2 features/Upgrade.md
dxruby_rp5-0.0.4 spec/vendor/rspec-mocks-2.14.4/features/Upgrade.md