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
classiccms-0.3.5 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.3.5 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
classiccms-0.3.4 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
classiccms-0.3.4 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.3.3 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
classiccms-0.3.3 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.3.2 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.3.2 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
classiccms-0.3.1 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
classiccms-0.3.1 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.3.0 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.3.0 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-mocks-2.8.0/spec/rspec/mocks/double_spec.rb
ftl-0.2.0 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/double_spec.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/double_spec.rb