Sha256: b354a7b136627cbc4fec335fd12dab9ff2370170786a1957c6b19a75667446e2

Contents?: true

Size: 250 Bytes

Versions: 112

Compression:

Stored size: 250 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper.rb'

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

Version data entries

112 entries across 112 versions & 14 rubygems

Version Path
dchelimsky-rspec-1.1.10 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.1 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.2 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.3 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.4 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.5 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.6 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11.7 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.11 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.12 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.1 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.13 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.2 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.3 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.4 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.5 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.6 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.7 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.8 spec/spec/mocks/bug_report_10260_spec.rb
dchelimsky-rspec-1.1.99.9 spec/spec/mocks/bug_report_10260_spec.rb