Sha256: 5f9fa3f3c55de66032a7468b199a3244404c65c045d02aa2dc88552e0ee90882
Contents?: true
Size: 508 Bytes
Versions: 32
Compression:
Stored size: 508 Bytes
Contents
require 'spec_helper' describe Paperclip::NilAdapter do context 'a new instance' do before do @subject = Paperclip.io_adapters.for(nil) end it "gets the right filename" do assert_equal "", @subject.original_filename end it "gets the content type" do assert_equal "", @subject.content_type end it "gets the file's size" do assert_equal 0, @subject.size end it "returns true for a call to nil?" do assert @subject.nil? end end end
Version data entries
32 entries across 30 versions & 6 rubygems