Use only_path instead of setting an explicit host

This commit is contained in:
Tom Hughes 2016-11-24 20:33:36 +00:00
parent 1309661b15
commit 34c473f503
6 changed files with 10 additions and 10 deletions

View file

@ -545,7 +545,7 @@ class NotesControllerTest < ActionController::TestCase
assert_select "time", :count => 1
assert_select "name", "Note: #{open_note.id}"
assert_select "desc", :count => 1
assert_select "link[href='http://www.openstreetmap.org/note/#{open_note.id}']", :count => 1
assert_select "link[href='http://test.host/note/#{open_note.id}']", :count => 1
assert_select "extensions", :count => 1 do
assert_select "id", open_note.id.to_s
assert_select "url", note_url(open_note, :format => "gpx")