[rspec-users] How do I test my Module?
Gene Angelo
lists at ruby-forum.com
Tue Sep 21 10:07:58 EDT 2010
Ben Mabey wrote:
> On 9/21/10 6:51 AM, Gene Angelo wrote:
>> I think I understand basic Class testing, however, how do I test a
>> Module's behavior especially (in my case) where the Module will be used
>> as an extension primarily e.g. object.extend MyModule.
> One option is to extend an object in your spec like so:
>
Perfect. Thank you.
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list