Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (12 sloc) 0.475 kB
073152e @jyurek Abstract the Tempfile generation into a factory
jyurek authored
1 require './test/helper'
2
3 class Paperclip::TempfileFactoryTest < Test::Unit::TestCase
4 should "be able to generate a tempfile with the right name" do
5 file = subject.generate("omg.png")
6 end
7 should "be able to generate a tempfile with the right name with a tilde at the beginning" do
8 file = subject.generate("~omg.png")
9 end
10 should "be able to generate a tempfile with the right name with a tilde at the end" do
11 file = subject.generate("omg.png~")
12 end
13 end
Something went wrong with that request. Please try again.