Sha256: 1c39c2f2350ff8655c535cafcb0cda88dd06638a564f26b29718931bbd1ddd97

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

require "spec_helper"

describe "double" do
  it "is an alias for stub and mock" do
    double().should be_a(Rspec::Mocks::Mock)
  end
  
  it "uses 'Double' in failure messages" do
    double = double('name')
    expect {double.foo}.to raise_error(/Double "name" received/)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-mocks-2.0.0.beta.8 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.7 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.6 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.5 spec/rspec/mocks/double_spec.rb