diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-19 21:14:55 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-19 21:32:58 +0200 |
commit | 914218ef302542f3f58ef7f8f46c0ff0b540ac82 (patch) | |
tree | 59eaf97487fd4e05e3ec1c63d7bab1670c0e285d /actionpack/test | |
parent | c96bf840ad715cb203f29e1607929d59c3743d87 (diff) | |
download | rails-914218ef302542f3f58ef7f8f46c0ff0b540ac82.tar.gz rails-914218ef302542f3f58ef7f8f46c0ff0b540ac82.tar.bz2 rails-914218ef302542f3f58ef7f8f46c0ff0b540ac82.zip |
Let's use inheritance here, shall we?
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/sprockets_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index 863e473697..d8aef34bfb 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -1,5 +1,8 @@ require 'abstract_unit' require 'sprockets' +require 'mocha' + +module Rails; end class SprocketsHelperTest < ActionView::TestCase tests ActionView::Helpers::SprocketsHelper @@ -24,6 +27,11 @@ class SprocketsHelperTest < ActionView::TestCase @assets.paths << FIXTURES.join("sprockets/app/stylesheets") @assets.paths << FIXTURES.join("sprockets/app/images") + application = Object.new + Rails.stubs(:application).returns(application) + application.stubs(:config).returns(config) + application.stubs(:assets).returns(@assets) + config.perform_caching = true end |