Sha256: 8db6030b7eefb89ee3250b78f01db733331a03b514758aae5328b96e08f0d4b1
Contents?: true
Size: 830 Bytes
Versions: 15
Compression:
Stored size: 830 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe NullFile do context '#path' do it 'always returns nil' do file = NullFile.new expect(file.path).to be_nil end end context '#name' do it 'always returns nil' do file = NullFile.new expect(file.name).to be_nil end end context '#content' do it 'returns the content of file' do file = NullFile.new expect(file.content).to be_nil end end context '#nil?' do it 'is always true' do file = NullFile.new expect(file.nil?).to be_true end end context '#compressed_content' do it 'uses an external handler to compress content' do handler = double('handler') file = create_file('file1.pac', 'content') file = NullFile.new file.prepare(handler) end end end
Version data entries
15 entries across 15 versions & 1 rubygems