ENV['environment'] ||= 'test' ENV['RAILS_ENV'] = 'test' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] ) SimpleCov.minimum_coverage 100 SimpleCov.start do add_filter '/spec' end # - RSpec adds ./lib to the $LOAD_PATH require 'hydra/derivatives' # Resque.inline = Rails.env.test? require 'byebug' unless ENV['TRAVIS'] require 'active_fedora/cleaner' ActiveFedora::Base.logger = Logger.new(STDOUT) RSpec.configure do |config| config.before(:each) do ActiveFedora::Cleaner.clean! end end # Workaround for RAW image support until these are pushed upstream to # the MIME Types gem require 'mime-types' dng_format = MIME::Type.new('image/x-adobe-dng') dng_format.extensions = 'dng' MIME::Types.add(dng_format) def fixture_path File.expand_path("../fixtures", __FILE__) end