summaryrefslogtreecommitdiff
path: root/billing/test/test_helper.rb
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-04-30 14:12:08 -0700
committerAzul <azul@leap.se>2013-07-17 10:47:13 +0200
commit7eab7e33730e12eeb460d2b3965a8712320aff54 (patch)
tree56ac203fb7f359e8374a9433a5763f4f5e3e4368 /billing/test/test_helper.rb
parent5442da999c8398b1e84162996f1e944c6496b095 (diff)
Very rough start to tests, which still doesn't really use FakeBraintree.
Diffstat (limited to 'billing/test/test_helper.rb')
-rw-r--r--billing/test/test_helper.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/billing/test/test_helper.rb b/billing/test/test_helper.rb
new file mode 100644
index 0000000..1e26a31
--- /dev/null
+++ b/billing/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