Sha256: 35b6fed174bae6ca67ceb4ad8794dcf6337012216df5e2fecb9884882f38d7f7

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe NullPacFile do
  context '#path' do
    it 'always returns nil' do
      file = NullPacFile.new
      expect(file.path).to be_nil
    end
  end

  context '#name' do
    it 'always returns nil' do
      file = NullPacFile.new
      expect(file.name).to be_nil
    end
  end

  context '#content' do
    it 'returns the content of file' do
      file = NullPacFile.new
      expect(file.content).to be_nil
    end
  end

  context '#nil?' do
    it 'is always true' do
      file = NullPacFile.new
      expect(file.nil?).to be_true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
local_pac-0.0.6 spec/null_pac_file_spec.rb
local_pac-0.0.5 spec/null_pac_file_spec.rb
local_pac-0.0.4 spec/null_pac_file_spec.rb
local_pac-0.0.3 spec/null_pac_file_spec.rb
local_pac-0.0.2 spec/null_pac_file_spec.rb
local_pac-0.0.1 spec/null_pac_file_spec.rb