Sha256: e3af4a816380d983aab1e423e74449463672a7be924fef2e554df6f0d358294f
Contents?: true
Size: 764 Bytes
Versions: 6
Compression:
Stored size: 764 Bytes
Contents
require 'spec_helper' describe Codeqa::Checkers::RubocopLint do it_behaves_like 'a checker' it 'should check text files' do source = source_with expect(described_class.check?(source)).to be_truthy source = source_with('', 'zipped.zip') expect(described_class.check?(source)).to be_falsey end it 'should detect syntax errors' do source = source_with('class MyClass') checker = check_with(described_class, source) expect(checker).to be_error expect(checker.errors.details.first).to eq([[1, 14], 'Syntax: unexpected token $end']) end it 'should find not find if not there ' do source = source_with('class MyClass; end') checker = check_with(described_class, source) expect(checker).to be_success end end
Version data entries
6 entries across 6 versions & 1 rubygems