Sha256: ec70459304e502db6c07808f1e833e73bbcf0c8ab8f7595bf75f95898404b61b

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

require './test/helper'

class Paperclip::TempfileFactoryTest < Test::Unit::TestCase
  should "be able to generate a tempfile with the right name" do
    file = subject.generate("omg.png")
  end
  should "be able to generate a tempfile with the right name with a tilde at the beginning" do
    file = subject.generate("~omg.png")
  end
  should "be able to generate a tempfile with the right name with a tilde at the end" do
    file = subject.generate("omg.png~")
  end
  should "be able to generate a tempfile from a file with a really long name" do
    filename = "#{"longfilename" * 100}.txt"
    file = subject.generate(filename)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paperclip-3.5.4 test/tempfile_factory_test.rb
paperclip-3.5.3 test/tempfile_factory_test.rb