Sha256: c092cab9077096e55f82ad458845099aecb59e49c6454e4f39016c56e27d334d
Contents?: true
Size: 297 Bytes
Versions: 14
Compression:
Stored size: 297 Bytes
Contents
# This is a testable class that emulates an uploaded file class MockFile attr_reader :path def initialize(path) @path = path end def size 1 end def original_filename @path.split('/').last end def read File.open(@path) { |f| f.read } end def rewind; end end
Version data entries
14 entries across 14 versions & 4 rubygems