1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #1221 from sikachu/fix_tests

Make sure that we're able to run Action Pack test standalone.
This commit is contained in:
David Heinemeier Hansson 2011-05-22 16:05:36 -07:00
commit 7124659f3e
2 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -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