spec/spec_helper.rb in hydra-derivatives-1.2.1 vs spec/spec_helper.rb in hydra-derivatives-2.0.0

- old
+ new

@@ -10,6 +10,17 @@ 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) + $in_travis = !ENV['TRAVIS'].nil? && ENV['TRAVIS'] == 'true' + +def fixture_path + File.expand_path("../fixtures", __FILE__) +end