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
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
newbamboo-evented-rspec-1.1.12 spec/spec/mocks/bug_report_10260_spec.rb
newbamboo-rspec-1.1.12 spec/spec/mocks/bug_report_10260_spec.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
rspec-1.2.7 spec/spec/mocks/bug_report_10260_spec.rb
rspec-1.2.8 spec/spec/mocks/bug_report_10260_spec.rb
deckshuffler-0.0.2 vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
has_finder-0.1.2 spec/rails/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
has_finder-0.1.1 spec/rails/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
has_finder-0.1.3 spec/rails/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb
mack-0.8.2 lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb