From 11017e82d81b4966716c871a978530689a1b411f Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 20 Dec 2010 09:48:10 -0300 Subject: [PATCH] Fixing test --- test/unit/application_helper_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/application_helper_test.rb b/test/unit/application_helper_test.rb index cdbc1c3..e637854 100644 --- a/test/unit/application_helper_test.rb +++ b/test/unit/application_helper_test.rb @@ -438,14 +438,14 @@ class ApplicationHelperTest < Test::Unit::TestCase should 'use theme passed via param when in development mode' do stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) ENV.stubs(:[]).with('RAILS_ENV').returns('development') - self.stubs(:params).returns({:theme => 'my-theme'}) - assert_equal 'my-theme', current_theme + self.stubs(:params).returns({:theme => 'skyblue'}) + assert_equal 'skyblue', current_theme end should 'not use theme passed via param when in production mode' do stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) ENV.stubs(:[]).with('RAILS_ENV').returns('production') - self.stubs(:params).returns({:theme => 'my-theme'}) + self.stubs(:params).returns({:theme => 'skyblue'}) stubs(:profile).returns(Profile.new(:theme => 'profile-theme')) assert_equal 'profile-theme', current_theme end -- libgit2 0.21.2