Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (12 sloc) 0.475 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
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
end
Something went wrong with that request. Please try again.