Sha256: cd9ed63247b99ad2a2db7030b542f2f729b5fb41384c10121f6acb5ccc9fd8b7
Contents?: true
Size: 897 Bytes
Versions: 3
Compression:
Stored size: 897 Bytes
Contents
$:.reject! { |e| e.include? 'TextMate' } ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' include ActionDispatch::TestProcess require File.expand_path(File.dirname(__FILE__) + '/factories') require File.join(File.dirname(__FILE__), 'shoulda_macros', 'paperclip') class ActiveSupport::TestCase VALID_FILE = fixture_file_upload('rails.png', 'image/png') VALID_TEXT_FILE = fixture_file_upload('test.txt', 'text/plain') VALID_PDF_FILE = fixture_file_upload('test.pdf', 'application/pdf') VALID_WORD_FILE = fixture_file_upload('test.doc', 'application/word') VALID_EXCEL_FILE = fixture_file_upload('test.xls', 'application/excel') self.use_transactional_fixtures = true self.use_instantiated_fixtures = false def ensure_flash(val) assert_contains flash.values, val, ", Flash: #{flash.inspect}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uploader-3.0.2 | test/rails_test/test/test_helper.rb |
uploader-3.0.1 | test/rails_test/test/test_helper.rb |
uploader-3.0.0 | test/rails_test/test/test_helper.rb |