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