Sha256: da4d4987146c3b772df475181f0e8c55fe9abc5812fb3cd2e691e470b2b334d9
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
# 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 class ActiveSupport::TestCase def teardown # This is needed to prevent leakage between tests, the Easymon::Repository # will remember all checks added to it, regardless of what test it was # added in Easymon::Repository.names.each {|name| Easymon::Repository.remove(name)} end end class ActionController::TestCase def teardown # This is needed to prevent leakage between tests, the Easymon::Repository # will remember all checks added to it, regardless of what test it was # added in Easymon::Repository.names.each {|name| Easymon::Repository.remove(name)} end end # setting up mocha *after* we load the test libraries as per # http://gofreerange.com/mocha/docs/ require 'mocha/minitest'
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
easymon-1.6.3 | test/test_helper.rb |
easymon-1.6.2 | test/test_helper.rb |
easymon-1.6.1 | test/test_helper.rb |
easymon-1.6.0 | test/test_helper.rb |