Sha256: a6272bb07af02c082acbf1c2072642c5938879f3ef2e9aedace15233ec269bcb

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

unless defined? JRUBY_VERSION
  require 'simplecov'
  require 'coveralls'

  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]

  SimpleCov.start do
    add_filter '/test/'
    add_filter '/vendor/'
    add_filter '/bin/'
    add_filter '/.bundle/'
  end
end

# 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!

# Configure capybara for integration testing
require 'capybara/rails' # Must be required after rails/test_help
Capybara.default_driver = :rack_test
Capybara.default_selector = :css

#Run any available migrations
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)

# 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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rails-logstasher-0.1.4 test/test_helper.rb
rails-logstasher-0.1.3 test/test_helper.rb
rails-logstasher-0.1.2 test/test_helper.rb
yarder-0.1.0 test/test_helper.rb
rails-logstasher-0.1.1 test/test_helper.rb
rails-logstasher-0.1.0 test/test_helper.rb
yarder-0.0.2 test/test_helper.rb