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/

_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to