Sha256: 82054441e8f7a7d6a9e3e1687d6ce39ef64e8c9e0f2756e185d874be88e12008

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

shared_examples_for 'language' do
  its(:linters){is_expected.to_not be_empty}

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lint_trap-0.0.19 spec/support/examples/language.rb
lint_trap-0.0.18 spec/support/examples/language.rb
lint_trap-0.0.17 spec/support/examples/language.rb
lint_trap-0.0.16 spec/support/examples/language.rb
lint_trap-0.0.15 spec/support/examples/language.rb
lint_trap-0.0.14 spec/support/examples/language.rb
lint_trap-0.0.13 spec/support/examples/language.rb