Closed mark-ellul closed 9 years ago
After investigating I found that there were two issues occurring, #1 the route was not being found, and if it was found there was the error thrown above.
https://github.com/rails/rails/issues/4260
In my app I have a subdomain constraint so I created the below router to pass in a subdomain and host, even though I don't use those exact subdomains it was enough for the router to recognise the correct route and with the generate pathway host arg it stopped the recorded path
https://gist.github.com/mark-ellul/b530ea8fa31bc8afe408
Please feel free to add this to the project if and where you think its appropriate.
Regards
Mark
Hi @mark-ellul. I'm glad you found a workaround. If this is something you'd like AePageObjects to support, feel free to open a pull request and we can make it happen.
Thanks!
@dtognazzini I would need some time to clean up a few things to make it more flexible before I think its in the main code base. Once I get that time to do that I will create a pull request, but for now the gist should help anyone else with this constraints issues.
Regards Mark
Hi, I am having an issue with paths with parameters in my Rails 3.2 app testing with minitest.
I am using integration tests, with capybara, spork, poltergeist, and ae_page_objects. To complicate things our app is subdomain based and I am calling host! after creating the subdomain necessary.
Below is a snippet of the page I am trying to use.
This is the code I use to initialise the site...
I won't give you all the cruft of the test but the line below fails with the error below that....
The error thrown is....
Is there something I have to do so that the paths in the visitable concern generates the full_url correctly?
I have not set the router to anything specific, so I am sure I am missing something simple.
Any suggestions?
Thanks in advance