just use normal ruby for stubbing

This commit is contained in:
Aaron Patterson 2011-07-23 20:55:22 -07:00
parent a14f4566dd
commit d89a33d162

@ -26,10 +26,8 @@ def host_with_port() 'localhost' end
@assets.paths << FIXTURES.join("sprockets/app/stylesheets")
@assets.paths << FIXTURES.join("sprockets/app/images")
application = Object.new
application = Struct.new(:config, :assets).new(config, @assets)
Rails.stubs(:application).returns(application)
application.stubs(:config).returns(config)
application.stubs(:assets).returns(@assets)
@config = config
@config.action_controller ||= ActiveSupport::InheritableOptions.new
@config.perform_caching = true