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

Version Path
local_pac-0.10.2 spec/null_file_spec.rb
local_pac-0.10.1 spec/null_file_spec.rb
local_pac-0.10.0 spec/null_file_spec.rb
local_pac-0.9.0 spec/null_file_spec.rb
local_pac-0.7.0 spec/null_file_spec.rb
local_pac-0.6.3 spec/null_file_spec.rb
local_pac-0.6.2 spec/null_file_spec.rb
local_pac-0.6.1 spec/null_file_spec.rb
local_pac-0.5.0 spec/null_file_spec.rb
local_pac-0.4.0 spec/null_file_spec.rb
local_pac-0.3.0 spec/null_file_spec.rb
local_pac-0.2.3 spec/null_file_spec.rb
local_pac-0.2.2 spec/null_file_spec.rb
local_pac-0.2.1 spec/null_file_spec.rb
local_pac-0.2.0 spec/null_file_spec.rb