* David Chelimsky [2011-12-07]: > > reading "Growing Object-Oriented Software, guided by tests", I came > > across the distinction of class, role and responsibility. > > > > While classes are classes and responsibilities could be mapped to public > > methods, I wonder how to specify roles in my specs. Does anyone have > > experiences with this? > > > > cheers, > > > > Nikolay > > https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples
Sorry, but I don't see how that helps. In my understanding, roles are a set of related responsibilities. If responsibilities map roughly to public methods, than a role should be a subset of a class' API. I don't see where I should want to share example groups. cheers, Nikolay -- "It's all part of my Can't-Do approach to life." Wally _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users