Sha256: 5d3beb52ef9f8a822f1985be54018c7a9da6c8f74ca0f5f09e7a0283da909480

Contents?: true

Size: 218 Bytes

Versions: 4

Compression:

Stored size: 218 Bytes

Contents

require 'spec_helper'

describe "An RSpec Mock" do
  it "should hide internals in its inspect representation" do
    m = double('cup')
    m.inspect.should =~ /#<Rspec::Mocks::Mock:0x[a-f0-9.]+ @name="cup">/
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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