* David Chelimsky [2011-12-07]: > Nikolay - just because they're shareable doesn't mean they have to be > shared :) As Pat suggests, you can use them to specify a subset of a > single object's API. That said, one goal of thinking of roles is code > that is easy to extend thanks to polymorphism. You might have onlly > one class that satisfies a role now, but you might add another later. > Shared examples allow you to just drop in a spec for that part of the > new object's responsibilities.
Ah great, the missing pieces! I hadn't thought about polymorphism and roles. This finally makes sense. :) cheers everyone, 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