Any way to get Cucumber to recognize route in Rails Engine 3.1

385 views
Skip to first unread message

mech

unread,
Sep 22, 2011, 4:54:57 AM9/22/11
to Cukes
Dear tester,

Anyone has any luck making XXX::Engine.routes.url_helpers available to
cucumber so the path can be examine.

In RSpec, we sort of can do this:

RSpec.configure do |c|
c.include XXX::Engine.routes.url_helpers
end

But I not sure where to put this for Cucumber. Any help?

FYI, using Rails 3.1 Engines and Cucumber 1.1.1

aslak hellesoy

unread,
Sep 22, 2011, 5:06:33 AM9/22/11
to cu...@googlegroups.com
On Thu, Sep 22, 2011 at 9:54 AM, mech <infe...@gmail.com> wrote:
Dear tester,

Anyone has any luck making XXX::Engine.routes.url_helpers available to
cucumber so the path can be examine.

In RSpec, we sort of can do this:

RSpec.configure do |c|
 c.include XXX::Engine.routes.url_helpers
end

But I not sure where to put this for Cucumber. Any help?


World(XXX::Engine.routes.url_helpers)


Aslak

FYI, using Rails 3.1 Engines and Cucumber 1.1.1

--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.


Reply all
Reply to author
Forward
0 new messages