Permalink
Browse files

update test helper to use dummy app structure

  • Loading branch information...
1 parent 7124c70 commit ec12cd1a8a38b84bb0f212af86d94aa1c5e047b4 @mjankowski mjankowski committed Dec 21, 2010
Showing with 10 additions and 2 deletions.
  1. +10 −2 test/test_helper.rb
View
@@ -8,7 +8,15 @@
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"
-require 'shoulda'
-require 'shoulda/rails'
+require "shoulda"
+require "shoulda/rails"
+
+Rails.backtrace_cleaner.remove_silencers!
begin require 'redgreen'; rescue LoadError; end
+
+# Run any available migration
+ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
+
+# Load support files
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

0 comments on commit ec12cd1

Please sign in to comment.