Displaying 1 result from an estimated 1 matches for "siberiancat".
2007 Aug 06
2
used the described Class in a shared behavior
...me => "fluffy", :breed =>
"Siberian"
# or maybe
before(:all) do
@feline = described_class.new(:name => "fluffy", :breed => "Siberian")
end
it "should have long hair" do
@feline.should be_long_haired
end
end
describe SiberianCat, "(a subclass of, say, Cat)" do
it_should_behave_like "Siberian feline"
it "should purr" do
@feline.sound.should == "purr"
end
end
describe SiberianTiger, "(a subclass of BigCat)" do
it_should_behave_like "Siberian feline"...