aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/link_to_helper_spec.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-10-04 15:13:20 +1000
committerHenare Degan <henare.degan@gmail.com>2012-10-04 15:13:20 +1000
commit2ce05f2d6eb33f5ac4c3a27312f97b79624aa48f (patch)
tree2bb3cd4bb00388a069601cb4941e30d207312172 /spec/helpers/link_to_helper_spec.rb
parent38a64203dd2e875e92c4bf4e5cd48ff59cd49526 (diff)
Change the behaviour of admin_url to always return a full URL
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r--spec/helpers/link_to_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index 098fba008..ef89e8bf9 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -51,11 +51,11 @@ describe LinkToHelper do
describe 'admin_url' do
context 'with no ADMIN_BASE_URL set' do
it 'should prepend the admin general index path to a simple string' do
- admin_url('unclassified').should == '/en/admin/unclassified'
+ admin_url('unclassified').should == 'http://test.host/en/admin/unclassified'
end
it 'should prepend the admin general index path to a deeper URL' do
- admin_url('request/show/123').should == '/en/admin/request/show/123'
+ admin_url('request/show/123').should == 'http://test.host/en/admin/request/show/123'
end
end