Permalink
Browse files

Merge pull request #1221 from sikachu/fix_tests

Make sure that we're able to run Action Pack test standalone.
  • Loading branch information...
dhh committed May 22, 2011
2 parents d7a910e + 90f028a commit 7124659f3ec0f7d732628a5c1dc1aa8e719aa0ae
Showing with 8 additions and 2 deletions.
  1. +1 −0 actionpack/test/abstract_unit.rb
  2. +7 −2 actionpack/test/template/sprockets_helper_test.rb
@@ -1,4 +1,5 @@
require File.expand_path('../../../load_paths', __FILE__)
+require File.expand_path('../../../version', __FILE__)
lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")
$:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)
@@ -1,9 +1,14 @@
require 'abstract_unit'
+
+module Rails
+ class Engine
+ def self.initializer(*args); end
+ end
+end
+
require 'sprockets'
require 'mocha'
-module Rails; end
-
class SprocketsHelperTest < ActionView::TestCase
tests ActionView::Helpers::SprocketsHelper

0 comments on commit 7124659

Please sign in to comment.