Sha256: 33fcbb79b458057ba53fb1841729540464a7abe55a5a5a33ca562d9564ee28c0

Contents?: true

Size: 266 Bytes

Versions: 14

Compression:

Stored size: 266 Bytes

Contents

module TestData
  def attachment(options = {})
    Paperclip::Attachment.new(:avatar, FakeModel.new, options)
  end

  def stringy_file
    StringIO.new('.\n')
  end

  def fixture_file(filename)
    File.join(File.dirname(__FILE__), "fixtures", filename)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kt-paperclip-7.2.2 spec/support/test_data.rb
kt-paperclip-7.2.1 spec/support/test_data.rb
kt-paperclip-7.2.0 spec/support/test_data.rb
kt-paperclip-6.4.2 spec/support/test_data.rb
kt-paperclip-7.1.1 spec/support/test_data.rb
kt-paperclip-7.1.0 spec/support/test_data.rb
kt-paperclip-7.0.1 spec/support/test_data.rb
kt-paperclip-7.0.0 spec/support/test_data.rb
kt-paperclip-6.4.1 spec/support/test_data.rb
kt-paperclip-6.4.0 spec/support/test_data.rb
kt-paperclip-6.3.0 spec/support/test_data.rb
kt-paperclip-6.2.2 spec/support/test_data.rb
kt-paperclip-6.2.1 spec/support/test_data.rb
kt-paperclip-6.2.0 spec/support/test_data.rb