From 227eddb3d3cd51bdec1b5eba3e4f5f1ae933c670 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 2 Mar 2009 16:41:51 -0300 Subject: [PATCH] ActionItem953: adapting tests --- test/functional/application_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index e0ffbab..0303e00 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -298,7 +298,7 @@ class ApplicationControllerTest < Test::Unit::TestCase end should 'not force ssl in development mode' do - ENV.expects(:[]).with('RAILS_ENV').returns('development') + ENV.expects(:[]).with('RAILS_ENV').returns('development').at_least_once @request.expects(:ssl?).returns(false).at_least_once get :sslonly assert_response :success @@ -334,7 +334,7 @@ class ApplicationControllerTest < Test::Unit::TestCase assert_response :success end should 'not refuse ssl while in development mode' do - ENV.expects(:[]).with('RAILS_ENV').returns('development') + ENV.expects(:[]).with('RAILS_ENV').returns('development').at_least_once @request.expects(:ssl?).returns(true).at_least_once get :nossl assert_response :success -- libgit2 0.21.2