if RUBY_ENGINE == 'ruby'
  if ENV['CI']
    require 'coveralls'
    Coveralls::Output.silent = true
    Coveralls.wear! do
      add_filter 'spec/'
    end
  else
    require 'simplecov'
    SimpleCov.start
  end
end

require 'premailer/rails'

require 'support/stubs/action_mailer'
require 'support/stubs/rails'
require 'support/fixtures/message'
require 'support/fixtures/html'

require 'hpricot' unless RUBY_PLATFORM == 'java'
require 'nokogiri'

if RUBY_ENGINE == 'ruby'
  if ENV['CI']
    require 'coveralls'
    Coveralls::Output.silent = true
    Coveralls.wear! do
      add_filter 'spec/'
    end
  else
    require 'simplecov'
    SimpleCov.start
  end
end

# Temporary fix for missing require. See
# https://github.com/rails/rails/pull/28835
require 'active_support/rescuable'

require 'premailer/rails'

require 'support/stubs/action_mailer'
require 'support/stubs/rails'
require 'support/fixtures/message'
require 'support/fixtures/html'

require 'hpricot' unless RUBY_PLATFORM == 'java'
require 'nokogiri'

Add temporary fix for rails bug
Add temporary fix for rails bug

Action Mailer no longer works in isolation due to a missing require.
See https://github.com/rails/rails/pull/28835 for more information.
