2014-04-09 07:02:20 +00:00
|
|
|
ENV['RAILS_ENV'] ||= 'test'
|
2013-02-28 02:40:32 +00:00
|
|
|
|
2011-05-08 19:43:23 +00:00
|
|
|
require 'simplecov'
|
2013-02-28 02:40:32 +00:00
|
|
|
require 'coveralls'
|
|
|
|
|
2014-07-18 07:00:45 +00:00
|
|
|
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
|
2015-04-20 12:23:17 +00:00
|
|
|
SimpleCov.start('rails') do
|
2015-11-30 22:58:13 +00:00
|
|
|
minimum_coverage(96.11)
|
2015-04-20 12:23:17 +00:00
|
|
|
end
|
2013-02-28 02:40:32 +00:00
|
|
|
|
2011-02-14 18:28:51 +00:00
|
|
|
require File.expand_path('../../config/environment', __FILE__)
|
|
|
|
require 'rails/test_help'
|
2013-12-02 21:47:02 +00:00
|
|
|
require 'webmock/minitest'
|
2011-02-14 18:28:51 +00:00
|
|
|
|
2014-04-01 08:15:29 +00:00
|
|
|
module ActiveSupport
|
|
|
|
class TestCase
|
|
|
|
ActiveRecord::Migration.check_pending!
|
2013-12-02 21:47:02 +00:00
|
|
|
|
2014-04-01 08:15:29 +00:00
|
|
|
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
|
|
|
#
|
|
|
|
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
|
|
|
# -- they do not yet inherit this setting
|
|
|
|
fixtures :all
|
2011-02-14 18:28:51 +00:00
|
|
|
|
2014-04-01 08:15:29 +00:00
|
|
|
# Add more helper methods to be used by all tests here...
|
|
|
|
end
|
2011-02-14 18:28:51 +00:00
|
|
|
end
|