Sha256: b028ba06e1236996c78077209d19ec2c085579b1a61e712034dcb9a82bfecd15
Contents?: true
Size: 865 Bytes
Versions: 2
Compression:
Stored size: 865 Bytes
Contents
require 'spec_helper' describe LintTrap::Linter::Base do let(:image){LintTrap::Linter::RuboCop.new.image_version} let(:container){LintTrap::Container::Docker.new(image, fixture_path, remove_container: ENV['CI'].nil?)} let(:options){{}} subject(:linter) do ErrorLinter = Class.new(described_class) do def command_name(_container) 'ls' end def flags(_container, _options) [] end end.new end describe '#lint' do context 'when linting fails' do let(:file){fixture_path('this-does-not-exist.rb')} it 'raises an error with console output' do expect{|b| linter.lint([file], container, options, &b)}.to raise_error( LintTrap::Linter::LintError, start_with( 'An error occurred while running `docker run' ) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lint_trap-0.0.15 | spec/integration/base_spec.rb |
lint_trap-0.0.14 | spec/integration/base_spec.rb |