Selenium on Rails: Relative vs Absolute pathnames

Hello, guys.

I’ve been playing with the rather great Selenium on Rails plugin
recently, but one problem I’ve been having is getting it to recognise
relative path names.

From some tests I’ve seen written by others, it looks as if (using .rsel
files)one can do:


assert_location '/sales/step_one/

But when I try this, the assertion fails, with the message:
"Actual value ‘http://production.example.com/sales/step_one/’ did not
match ‘/sales/step_one/’ "
At the moment I find myself putting in the full URL, but obviously this
doesn’t exactly lend itself to moving from one server to another.

Any suggestions, explanations, or blindingly obvious solutions that I’ve
missed would be appreciated.

Cheers,

Dave