adopt-a-hydrant/test/test_helper.rb

27 lines
726 B
Ruby
Raw Normal View History

2011-09-03 20:09:54 +00:00
ENV["RAILS_ENV"] = "test"
2011-05-08 19:43:23 +00:00
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start('rails')
2011-02-14 18:28:51 +00:00
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'webmock/minitest'
2011-02-14 18:28:51 +00:00
class ActiveSupport::TestCase
ActiveRecord::Migration.check_pending!
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
2011-02-14 18:28:51 +00:00
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
fixtures :all
# Add more helper methods to be used by all tests here...
end