$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')

# This has to two separate if statements or Opal won't ignore it.
if RUBY_ENGINE != 'opal'
  # Coverage has to go before other requires.
  if ENV['COVERAGE']
    require 'simplecov'

    SimpleCov.start 'rails'
  end
end

require 'daniel'

RSpec.configure do |c|
  c.full_backtrace = true
end

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')

RUBY_ENGINE = 'unknown' unless defined?(RUBY_ENGINE)

# This has to two separate if statements or Opal won't ignore it.
if RUBY_ENGINE != 'opal'
  # Coverage has to go before other requires.
  if ENV['COVERAGE']
    require 'simplecov'

    SimpleCov.start 'rails'
  end
end

require 'daniel'

RSpec.configure do |c|
  c.full_backtrace = true
end

Fix breakage on Ruby 1.8.
Fix breakage on Ruby 1.8.

Ruby 1.8 apparently does not define RUBY_ENGINE.

Signed-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>
