Sha256: 3709f6c9c904a47f1f344c6068f14983433a41dcbfbb5301434568889abf1c1a

Contents?: true

Size: 312 Bytes

Versions: 101

Compression:

Stored size: 312 Bytes

Contents

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

module Bug7611
  class Foo
  end

  class Bar < Foo
  end

  describe "A Partial Mock" do
    it "should respect subclasses" do
      Foo.stub!(:new).and_return(Object.new)
    end

    it "should" do
      Bar.new.class.should == Bar
    end 
  end
end

Version data entries

101 entries across 101 versions & 15 rubygems

Version Path
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
newbamboo-evented-rspec-1.1.12 spec/spec/mocks/bug_report_7611_spec.rb
newbamboo-rspec-1.1.12 spec/spec/mocks/bug_report_7611_spec.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb
rspec-mocks-2.0.0.a2 spec/rspec/mocks/bug_report_7611_spec.rb
rspec-mocks-2.0.0.a1 spec/rspec/mocks/bug_report_7611_spec.rb
rspec-1.2.7 spec/spec/mocks/bug_report_7611_spec.rb
rspec-1.2.8 spec/spec/mocks/bug_report_7611_spec.rb
deckshuffler-0.0.2 vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
has_finder-0.1.2 spec/rails/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
has_finder-0.1.1 spec/rails/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb
has_finder-0.1.3 spec/rails/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb