diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-15 17:24:33 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-15 17:24:33 +1100 |
commit | 5401d07ae95fdd47f346ad05100fd49a410265cd (patch) | |
tree | 7958696d35c1d61ecd3559fea09cf6555bfec892 /spec/helpers/link_to_helper_spec.rb | |
parent | 4dbac2efe4bd002155e2eb9b79f41ce10d2c854e (diff) |
admin_url was removed in 902631ec4f5e1a16b8f08a2ed0ccc86ad2b72c6c
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r-- | spec/helpers/link_to_helper_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb index 3d494dcda..4cc1d415b 100644 --- a/spec/helpers/link_to_helper_spec.rb +++ b/spec/helpers/link_to_helper_spec.rb @@ -35,32 +35,6 @@ describe LinkToHelper do end - 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 == '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 == 'http://test.host/en/admin/request/show/123' - end - end - - context 'with ADMIN_BASE_URL set' do - before(:each) do - AlaveteliConfiguration::should_receive(:admin_base_url).and_return('https://www.example.com/secure/alaveteli-admin/') - end - - it 'should prepend the admin base URL to a simple string' do - admin_url('unclassified').should == 'https://www.example.com/secure/alaveteli-admin/unclassified' - end - - it 'should prepend the admin base URL to a deeper URL' do - admin_url('request/show/123').should == 'https://www.example.com/secure/alaveteli-admin/request/show/123' - end - end - end - describe 'simple_date' do it 'should respect time zones' do Time.use_zone('Australia/Sydney') do |