Commit 11017e82d81b4966716c871a978530689a1b411f
1 parent
bd2a9ce9
Exists in
master
and in
29 other branches
Fixing test
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/unit/application_helper_test.rb
@@ -438,14 +438,14 @@ class ApplicationHelperTest < Test::Unit::TestCase | @@ -438,14 +438,14 @@ class ApplicationHelperTest < Test::Unit::TestCase | ||
438 | should 'use theme passed via param when in development mode' do | 438 | should 'use theme passed via param when in development mode' do |
439 | stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) | 439 | stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) |
440 | ENV.stubs(:[]).with('RAILS_ENV').returns('development') | 440 | ENV.stubs(:[]).with('RAILS_ENV').returns('development') |
441 | - self.stubs(:params).returns({:theme => 'my-theme'}) | ||
442 | - assert_equal 'my-theme', current_theme | 441 | + self.stubs(:params).returns({:theme => 'skyblue'}) |
442 | + assert_equal 'skyblue', current_theme | ||
443 | end | 443 | end |
444 | 444 | ||
445 | should 'not use theme passed via param when in production mode' do | 445 | should 'not use theme passed via param when in production mode' do |
446 | stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) | 446 | stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) |
447 | ENV.stubs(:[]).with('RAILS_ENV').returns('production') | 447 | ENV.stubs(:[]).with('RAILS_ENV').returns('production') |
448 | - self.stubs(:params).returns({:theme => 'my-theme'}) | 448 | + self.stubs(:params).returns({:theme => 'skyblue'}) |
449 | stubs(:profile).returns(Profile.new(:theme => 'profile-theme')) | 449 | stubs(:profile).returns(Profile.new(:theme => 'profile-theme')) |
450 | assert_equal 'profile-theme', current_theme | 450 | assert_equal 'profile-theme', current_theme |
451 | end | 451 | end |