Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
No longer requiring being installed in a Rails app in order to run th…
Browse files Browse the repository at this point in the history
…e tests.
  • Loading branch information
augustl committed Sep 14, 2009
1 parent 97a66c6 commit d54d7d9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/test_helper.rb
@@ -1,10 +1,14 @@
require 'test/unit'

begin
require File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'config', 'environment')
rescue LoadError => e
puts "Please run these tests within a Rails app"
exit
require 'rubygems'
require 'active_support'

module Rails
extend self

def env
"development"
end
end

begin
Expand Down

0 comments on commit d54d7d9

Please sign in to comment.