From 7eab7e33730e12eeb460d2b3965a8712320aff54 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 30 Apr 2013 14:12:08 -0700 Subject: Very rough start to tests, which still doesn't really use FakeBraintree. --- billing/test/test_helper.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 billing/test/test_helper.rb (limited to 'billing/test/test_helper.rb') 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 -- cgit v1.2.3