test/helper.rb in paperclip-aws-1.3.1 vs test/helper.rb in paperclip-aws-1.3.2

- old
+ new

@@ -23,10 +23,11 @@ class Test::Unit::TestCase def setup silence_warnings do Object.const_set(:Rails, stub('Rails', :root => ROOT, :env => 'test')) end + Rails.stubs(:const_defined?) end end FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures") @@ -62,16 +63,8 @@ end klass.reset_column_information klass end -# def rebuild_class options = {} -# ActiveRecord::Base.send(:include, Paperclip::Glue) -# Object.send(:remove_const, "Dummy") rescue nil -# Object.const_set("Dummy", Class.new(ActiveRecord::Base)) -# Paperclip.reset_duplicate_clash_check! -# Dummy.class_eval do -# include Paperclip::Glue -# has_attached_file :avatar, options -# end -# Dummy.reset_column_information -# end +def fixture_file(filename) + File.join(File.dirname(__FILE__), 'fixtures', filename) +end \ No newline at end of file