Displaying 1 result from an estimated 1 matches for "siberiantiger".
2007 Aug 06
2
used the described Class in a shared behavior
...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"
it "should roar" do
@feline.sound.should == "roar"
end
end
I''m looking for something more elegant than my current way, which is like so:
describe "Siberian felin...