One of my standard techniques for working with cucumber is to use the
ruby debugger to stop in a step definition, e.g.
When “I visit root” do
visit “/”
debugger
1 # to stop debugger going into cuke code
end
If I do this under mri and look at ‘self’ I get a Cucumber::Rails::World
If I do this under JRuby and look at ‘self’ I get main
This effectively means I can’t debug under JRuby. (1.6.4)
If anyone can help with this I’d be most grateful
All best
Andrew
–
Andrew P.
blog.andrew.premdas.org