Sha256: 1b27196d6e8e00a736bf01a32f06e2dd409206a002e953b7027a8759065d3bb1

Contents?: true

Size: 1.17 KB

Versions: 10

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/mini_test'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
easymon-1.5 test/test_helper.rb
easymon-1.4.2 test/test_helper.rb
easymon-1.4.1 test/test_helper.rb
easymon-1.4 test/test_helper.rb
easymon-1.3 test/test_helper.rb
easymon-1.2.6 test/test_helper.rb
easymon-1.2.5 test/test_helper.rb
easymon-1.2.4 test/test_helper.rb
easymon-1.2.3 test/test_helper.rb
easymon-1.2.2 test/test_helper.rb