Sha256: 8d1559c18612ce30b8f9a177ca1b7d8bd50135edc911390d5b041d61cae1fa7d
Contents?: true
Size: 671 Bytes
Versions: 152
Compression:
Stored size: 671 Bytes
Contents
require "spec_helper" describe Rack::Test::UploadedFile do def test_file_path File.dirname(__FILE__) + "/../../fixtures/foo.txt" end it "responds to things that Tempfile responds to" do uploaded_file = Rack::Test::UploadedFile.new(test_file_path) uploaded_file.should respond_to(:close) uploaded_file.should respond_to(:close!) uploaded_file.should respond_to(:delete) uploaded_file.should respond_to(:length) uploaded_file.should respond_to(:open) uploaded_file.should respond_to(:path) uploaded_file.should respond_to(:size) uploaded_file.should respond_to(:unlink) uploaded_file.should respond_to(:read) end end
Version data entries
152 entries across 127 versions & 26 rubygems