
webrat/selenium should support testing apps at sub urls
Reported by Jason | April 17th, 2009 @ 12:34 PM
I just sent a pull request from my fork on github (http://github.com/jason-o-matic/... that adds support for using selenium with rails apps at sub urls.
This lets you do:
Webrat.configure do |config|
config.mode = :selenium
# ...
config.application_relative_url_root = "/myapp"
# ...
end
So, as long as you have ActionController's relative_url_root option set appropriately you can test your app in a more production-like setting.
Comments and changes to this ticket
-
gaffo April 22nd, 2009 @ 01:00 PM
- State changed from new to open
Jason, The url you attached gives me a not found on github.
Also, does this work change normal webrat mode at all?
-
Jason April 22nd, 2009 @ 03:53 PM
I see, looks like my ending paren got attached to the url.
http://github.com/jason-o-matic/...
This change doesn't change normal webrat mode, it just allows you to specify the --prefix option to mongrel_rails when selenium testing.
-
gaffo June 5th, 2009 @ 10:54 AM
- State changed from open to awaiting-patch
Marcello,
So For this we'll need the thin application server and the patch from Jason above, correct?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.