Saturday, February 20, 2010

[Rails] webrat step to go to view

I am trying to make webrat step just go to /controller/view url .
I have the following, but it takes a full URL. How can I make it to
take only the relative path containing only /controller/view. Thanks.

When /^I open (.+)$/ do |url|
visit url
end

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate