From: Judson Lester Date: 2008-01-18T05:19:27+09:00 Subject: Re: Using RSpec to Describe Included Module Behavior On Jan 17, 2008 10:23 AM, Starr Trader wrote: > Greeting all, > > I'm having difficulties with RSpec. I have a module that adds some > interface functions to a class (a la Rails) and I want to test their > functionality. (BDD and all you know) > > I'm not sure how to describe a module like this. It is not a class > where I can create an instance directly for testing, I somehow need to > create a Class that can have this module included in it. > > Any ideas? Try something like before do @test_me = Object.new @test_me.extend MyCoolModule end -- Your subnet is currently 169.254.0.0/16. You are likely to be eaten by a grue.