summaryrefslogtreecommitdiff
path: root/help/test/test_helper.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-01 14:59:29 -0700
committerjessib <jessib@riseup.net>2012-10-01 14:59:29 -0700
commitc0f10e15d8d2ec3be620dff62315a44bd065f201 (patch)
tree42597c24af327b10bed712d8aa49cad5ad62a350 /help/test/test_helper.rb
parenta757e173f93bf1d42bb41e92757e53b446e3d76d (diff)
Moving start to help engine to live within leap_web repo rather than independent engine repo.
Diffstat (limited to 'help/test/test_helper.rb')
-rw-r--r--help/test/test_helper.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/help/test/test_helper.rb b/help/test/test_helper.rb
new file mode 100644
index 0000000..1e26a31
--- /dev/null
+++ b/help/test/test_helper.rb
@@ -0,0 +1,15 @@
+# Configure Rails Environment
+ENV["RAILS_ENV"] = "test"
+
+require File.expand_path("../dummy/config/environment.rb", __FILE__)
+require "rails/test_help"
+
+Rails.backtrace_cleaner.remove_silencers!
+
+# Load support files
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+
+# Load fixtures from the engine
+if ActiveSupport::TestCase.method_defined?(:fixture_path=)
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
+end