Sha256: 332bb4e5393294921ee9ec5c096032fcf2a5736f283d250632e46fe041570591

Contents?: true

Size: 954 Bytes

Versions: 3

Compression:

Stored size: 954 Bytes

Contents

require 'spec_helper'

describe LintTrap::Container::Base do
  subject(:container) do
    Class.new(described_class).new('lintci/rubocop', '/src')
  end

  its(:image){is_expected.to eq('lintci/rubocop')}

  describe '#pull' do
    it 'raises an error if not overriden' do
      expect{container.pull}.to raise_error(NotImplementedError, 'Must implement pull.')
    end
  end

  describe '#wrap' do
    it 'raises an error if not overriden' do
      expect{container.wrap('ls')}.to raise_error(NotImplementedError, 'Must implement wrap.')
    end
  end

  describe '#config_path' do
    it 'raises an error if not overriden' do
      expect{container.config_path('/config')}.to raise_error(NotImplementedError, 'Must implement config_path.')
    end
  end

  describe '#file_path' do
    it 'raises an error if not overriden' do
      expect{container.file_path('/src')}.to raise_error(NotImplementedError, 'Must implement file_path.')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lint_trap-0.0.19 spec/container/base_spec.rb
lint_trap-0.0.18 spec/container/base_spec.rb
lint_trap-0.0.17 spec/container/base_spec.rb