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
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/features/Upgrade.md
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/features/Upgrade.md
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/features/Upgrade.md
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/features/Upgrade.md
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.8 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.8 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.7 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.7 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.6 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.6 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.5 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.5 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.4 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.4 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.3 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.3 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.2 vendor/bundle/gems/rspec-mocks-2.9.0/features/Upgrade.md
classiccms-0.3.2 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md
classiccms-0.3.1 vendor/bundle/gems/rspec-mocks-2.10.1/features/Upgrade.md