Sha256: 6714f3b3e8e64d3b4516e48a7089a1cfaca9c219a1aa83f81a1042f0b92a3364

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 Bytes

Contents

shared_examples_for 'linter' do
  its(:languages){is_expected.to_not be_empty}

  describe '#languages' do
    it 'returns a list of languages which reference this linter' do
      linter.languages.each do |language|
        expect(language.linters).to include(linter), "expected #{language.name} to reference #{linter.name} as one of it's linters"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lint_trap-0.0.15 spec/support/examples/linter.rb
lint_trap-0.0.14 spec/support/examples/linter.rb
lint_trap-0.0.13 spec/support/examples/linter.rb
lint_trap-0.0.11 spec/support/examples/linter.rb
lint_trap-0.0.10 spec/support/examples/linter.rb
lint_trap-0.0.9 spec/support/examples/linter.rb