[rspec-users] Getting Class in Shared Behaviours
has.sox at gmail.com
Wed Nov 21 16:14:29 EST 2007
I want to be able to get at the described class in my shared behaviour. I'm
sure an example will say it better than my words
describe "my shared", :shared => true do
it "should tell me what the class is its describing" do
describe User do
it_should_behave_like "my shared"
So in my shared behaviour, how do I get access to the User class?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users