aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-02-06 14:48:12 +0000
committerRobin Houston <robin.houston@gmail.com>2012-02-06 14:48:12 +0000
commit3b6e5a692b852a88f55b21a7210f60a6f7cfc24b (patch)
tree02ec8e10de4f025eb430cd3856fe46381013c08a /spec/helpers
parent11782f45795dc8f57e5ca9666e8325976541120e (diff)
Let admin users use auto-login URLs
Don't change logged-in user from an admin when visiting a auto-login URL. Closes #306.
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/link_to_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index 3fa91a8f8..f11f2b5bb 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -28,13 +28,13 @@ describe LinkToHelper do
describe "when appending something to a URL" do
it 'should append to things without query strings' do
- main_url('/a', '.json').should == 'http://test.localdomain/a.json'
+ main_url('/a', '.json').should == 'http://test.host/a.json'
end
it 'should append to things with query strings' do
- main_url('/a?z=1', '.json').should == 'http://test.localdomain/a.json?z=1'
+ main_url('/a?z=1', '.json').should == 'http://test.host/a.json?z=1'
end
it 'should fail silently with invalid URLs' do
- main_url('/a?z=9%', '.json').should == 'http://test.localdomain/a?z=9%'
+ main_url('/a?z=9%', '.json').should == 'http://test.host/a?z=9%'
end
end