[rspec-users] Including matchers in Cucumber

Ashley Moran ashley.moran at patchspace.co.uk
Mon Sep 22 17:45:15 EDT 2008


On Sep 22, 2008, at 12:30 pm, aslak hellesoy wrote:

> # Put this in steps/env.rb
> World do
>  w = Object.new
>  w.extend(TwitterMatchers)
>  w
> end
>
> Aslak



Cool!

I did it like this in the end, when I figured out what it was doing:

   class MyWorld
     include TwitterMatchers
   end

   World do
     MyWorld.new
   end


Thanks Aslak

Ashley

-- 
http://www.patchspace.co.uk/
http://aviewfromafar.net/



More information about the rspec-users mailing list