Commit 1533ee714ff3e91d40e2fa65a5f0d2c30f89049d
1 parent
8c191020
Exists in
master
and in
29 other branches
ActionItem438: adding test for base with ssl
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2476 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
test/functional/application_controller_test.rb
@@ -193,6 +193,13 @@ class ApplicationControllerTest < Test::Unit::TestCase | @@ -193,6 +193,13 @@ class ApplicationControllerTest < Test::Unit::TestCase | ||
193 | assert_tag :tag => 'base', :attributes => { :href => 'http://www.lala.net' } | 193 | assert_tag :tag => 'base', :attributes => { :href => 'http://www.lala.net' } |
194 | end | 194 | end |
195 | 195 | ||
196 | + should 'request environment top_url with ssl when under ssl for base' do | ||
197 | + Environment.any_instance.expects(:top_url).with(true).returns('https://www.lala.net/') | ||
198 | + @request.expects(:ssl?).returns(true).at_least_once | ||
199 | + get :index | ||
200 | + assert_tag :tag => 'base', :attributes => { :href => 'https://www.lala.net/' } | ||
201 | + end | ||
202 | + | ||
196 | should 'display theme test panel when testing theme' do | 203 | should 'display theme test panel when testing theme' do |
197 | @request.session[:theme] = 'my-test-theme' | 204 | @request.session[:theme] = 'my-test-theme' |
198 | theme = mock | 205 | theme = mock |