Sha256: 10bd3e19b8211b2f56661fc487780c8a883320aa0afc5bfe60a308d502cc84b8
Contents?: true
Size: 841 Bytes
Versions: 8
Compression:
Stored size: 841 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../spec/spec_helper' plugin_spec_dir = File.dirname(__FILE__) ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log") load(File.dirname(__FILE__) + '/schema.rb') Spec::Runner.configure do |config| config.fixture_path = File.join(File.dirname(__FILE__), 'fixtures/') # remove files created from previous spec run, happens before instead of # after so you can view them after you run the specs FileUtils.rm_rf(File.join(File.dirname(__FILE__), 'output')) end def upload(file, type='image/jpg') fixture_file_upload file, type end class Attachment < ActiveRecord::Base is_uploadable :file_system_path => File.join(File.dirname(__FILE__), 'output') end class Image < ActiveRecord::Base is_image :file_system_path => File.join(File.dirname(__FILE__), 'output') end
Version data entries
8 entries across 8 versions & 1 rubygems