changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1require File.dirname(__FILE__) + '/../../spec_helper.rb'
2
3module Bug7611
4 class Foo
5 end
6
7 class Bar < Foo
8 end
9
10 describe "A Partial Mock" do
11 it "should respect subclasses" do
12 Foo.stub!(:new).and_return(Object.new)
13 end
14
15 it "should" do
16 Bar.new.class.should == Bar
17 end
18 end
19end