aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-04-19 21:14:55 +0200
committerJosé Valim <jose.valim@gmail.com>2011-04-19 21:32:58 +0200
commit914218ef302542f3f58ef7f8f46c0ff0b540ac82 (patch)
tree59eaf97487fd4e05e3ec1c63d7bab1670c0e285d /actionpack/test/template
parentc96bf840ad715cb203f29e1607929d59c3743d87 (diff)
downloadrails-914218ef302542f3f58ef7f8f46c0ff0b540ac82.tar.gz
rails-914218ef302542f3f58ef7f8f46c0ff0b540ac82.tar.bz2
rails-914218ef302542f3f58ef7f8f46c0ff0b540ac82.zip
Let's use inheritance here, shall we?
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/sprockets_helper_test.rb8
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