Sha256: 182eb2e014e2455e79e89930045c9be549a531d2d906f388e7d4302f064934ac
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 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[1]).to match(/unexpected token/) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codeqa-0.3.1 | spec/lib/codeqa/checkers/rubocop_lint_spec.rb |
codeqa-0.3.0 | spec/lib/codeqa/checkers/rubocop_lint_spec.rb |