Sha256: f02cb2aaa0459e01578069cd36fd15eca093e5c08def7f0e5fbaac5f40f64bec
Contents?: true
Size: 879 Bytes
Versions: 4
Compression:
Stored size: 879 Bytes
Contents
require 'spec_helper' module Stash module Wrapper describe StashFile do describe '#initialize' do attr_reader :params before(:each) do @params = { pathname: 'foo.txt', size_bytes: 12_345, mime_type: 'text/plain' } end it 'sets attributes from parameters' it 'requires a pathname' it 'rejects a nil pathname' it 'rejects an empty pathname' it 'rejects a blank pathname' it 'requires size_bytes' it 'rejects a nil size_bytes' it 'rejects a non-integer size_bytes' it 'rejects a non-numeric size_bytes' it 'accepts a standard MIME type' it 'accepts a non-standard MIME type' it 'fails if mime_type isn\'t a MIME type' it 'parses a nil mime-type as nil' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems