From 1533ee714ff3e91d40e2fa65a5f0d2c30f89049d Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sat, 6 Sep 2008 03:23:06 +0000 Subject: [PATCH] ActionItem438: adding test for base with ssl --- test/functional/application_controller_test.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index 8032d78..c401f2d 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -193,6 +193,13 @@ class ApplicationControllerTest < Test::Unit::TestCase assert_tag :tag => 'base', :attributes => { :href => 'http://www.lala.net' } end + should 'request environment top_url with ssl when under ssl for base' do + Environment.any_instance.expects(:top_url).with(true).returns('https://www.lala.net/') + @request.expects(:ssl?).returns(true).at_least_once + get :index + assert_tag :tag => 'base', :attributes => { :href => 'https://www.lala.net/' } + end + should 'display theme test panel when testing theme' do @request.session[:theme] = 'my-test-theme' theme = mock -- libgit2 0.21.2