Displaying 1 result from an estimated 1 matches for "described_class_instance_as".
2007 Aug 06
2
used the described Class in a shared behavior
Is it possible to access the described class in a shared behavior? I''m
trying to do something like this:
describe "Siberian feline", :shared => true do
described_class_instance_as :feline, :name => "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
e...