test/test_helper.rb in asset_hat-0.3.1 vs test/test_helper.rb in asset_hat-0.4.0
- old
+ new
@@ -3,29 +3,25 @@
require 'active_support'
require 'action_controller'
require 'action_view/test_case'
require 'shoulda'
-require 'asset_hat'
require 'flexmock/test_unit'
-Dir[File.join(File.dirname(__FILE__), %w[.. app helpers *])].each { |f| require f }
+require 'asset_hat'
+require 'asset_hat_helper'
ActionController::Base.perform_caching = false
unless defined?(Rails)
- # Enable `Rails.env.test?`, `Rails.env.development?`, etc.
module Rails
class << self
- def env ; ActiveSupport::StringInquirer.new('test') ; end
+ # Enable `Rails.env.test?`, `Rails.env.development?`, etc.
+ def env; ActiveSupport::StringInquirer.new('test'); end
end
end
end
-
-@original_config = AssetHat.config
- # Use this when FlexMock refuses to teardown automatically. (Yes,
- # this is ugly.)
class ActionView::TestCase
teardown :clear_html_cache
def clear_html_cache