Sha256: 0ee8722b27f993e69531eebb46b268d07ada4acbfb238cc4cf7a704e62f4930b

Contents?: true

Size: 285 Bytes

Versions: 197

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

197 entries across 143 versions & 17 rubygems

Version Path
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/double_spec.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.rc spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.22 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.20 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.19 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.18 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.17 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.16 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.15 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.14 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.13 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.12 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.11 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.10 spec/rspec/mocks/double_spec.rb
rspec-mocks-2.0.0.beta.9 spec/rspec/mocks/double_spec.rb