Commit 11017e82d81b4966716c871a978530689a1b411f
1 parent
bd2a9ce9
Exists in
master
and in
22 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 | 438 | should 'use theme passed via param when in development mode' do |
| 439 | 439 | stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) |
| 440 | 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 | 443 | end |
| 444 | 444 | |
| 445 | 445 | should 'not use theme passed via param when in production mode' do |
| 446 | 446 | stubs(:environment).returns(Environment.new(:theme => 'environment-theme')) |
| 447 | 447 | ENV.stubs(:[]).with('RAILS_ENV').returns('production') |
| 448 | - self.stubs(:params).returns({:theme => 'my-theme'}) | |
| 448 | + self.stubs(:params).returns({:theme => 'skyblue'}) | |
| 449 | 449 | stubs(:profile).returns(Profile.new(:theme => 'profile-theme')) |
| 450 | 450 | assert_equal 'profile-theme', current_theme |
| 451 | 451 | end | ... | ... |