From 3b6e5a692b852a88f55b21a7210f60a6f7cfc24b Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Mon, 6 Feb 2012 14:48:12 +0000 Subject: Let admin users use auto-login URLs Don't change logged-in user from an admin when visiting a auto-login URL. Closes #306. --- spec/helpers/link_to_helper_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/helpers/link_to_helper_spec.rb') 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 -- cgit v1.2.3