Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (10 sloc) 0.279 kb

rspec-mocks-2.2

What's new

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
Something went wrong with that request. Please try again.