Sha256: 93ba86f6c8a8a474470ecc8a2d594f6b9246fa720e4ce69913856f858dbd15ac
Contents?: true
Size: 1.62 KB
Versions: 4
Compression:
Stored size: 1.62 KB
Contents
require 'spec_helper' describe LintTrap::Linter do describe '.find' do subject(:language){described_class.find(linter_name)} context 'when given CheckStyle' do let(:linter_name){'CheckStyle'} it{is_expected.to be_a(described_class::CheckStyle)} end context 'when given CoffeeLint' do let(:linter_name){'CoffeeLint'} it{is_expected.to be_a(described_class::CoffeeLint)} end context 'when given CPPCheck' do let(:linter_name){'CPPCheck'} it{is_expected.to be_a(described_class::CPPCheck)} end context 'when given CSSLint' do let(:linter_name){'CSSLint'} it{is_expected.to be_a(described_class::CSSLint)} end context 'when given GoLint' do let(:linter_name){'GoLint'} it{is_expected.to be_a(described_class::GoLint)} end context 'when given JSHint' do let(:linter_name){'JSHint'} it{is_expected.to be_a(described_class::JSHint)} end context 'when given JSONLint' do let(:linter_name){'JSONLint'} it{is_expected.to be_a(described_class::JSONLint)} end context 'when given PyLint' do let(:linter_name){'PyLint'} it{is_expected.to be_a(described_class::PyLint)} end context 'when given RuboCop' do let(:linter_name){'RuboCop'} it{is_expected.to be_a(described_class::RuboCop)} end context 'when given SCSSLint' do let(:linter_name){'SCSSLint'} it{is_expected.to be_a(described_class::SCSSLint)} end context 'when given an invalid linter' do let(:linter_name){'taco cheese'} it{is_expected.to eq(nil)} end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lint_trap-0.0.10 | spec/linter_spec.rb |
lint_trap-0.0.9 | spec/linter_spec.rb |
lint_trap-0.0.8 | spec/linter_spec.rb |
lint_trap-0.0.7 | spec/linter_spec.rb |