test/test_helper.rb in tvdeyen-fleximage-1.1.1 vs test/test_helper.rb in tvdeyen-fleximage-1.2.0

- old
+ new

@@ -7,16 +7,11 @@ silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] } # Run the migrations ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") -# Setup the fixtures path -Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/" -$LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path) - require File.dirname(__FILE__) + '/mock_file' -require File.dirname(__FILE__) + '/s3_stubs' require 'open-uri' unless Magick::QuantumDepth == 16 puts "**** WARNING ****" puts "* Tests expect a ImageMagick bit depth of 16, you have Magick::QuantumDepth == #{Magick::QuantumDepth}" @@ -29,12 +24,9 @@ Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield } else Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) end end - - self.use_transactional_fixtures = true - self.use_instantiated_fixtures = false def files(name) case name when :photo MockFile.new("#{Rails.root}/../fixtures/photo.jpg")