Sha256: 5b0a3a403e195d875ad560cbfb521717434b573e647e93e640daf465f9d9de2d

Contents?: true

Size: 529 Bytes

Versions: 9

Compression:

Stored size: 529 Bytes

Contents

require 'rom/lint/repository'
require 'rom/lint/enumerable_dataset'

RSpec.shared_examples "a rom repository" do
  ROM::Lint::Repository.each_lint do |name, linter|
    it name do
      result = linter.new(identifier, repository, uri).lint(name)
      expect(result).to be_truthy
    end
  end
end

RSpec.shared_examples "a rom enumerable dataset" do
  ROM::Lint::EnumerableDataset.each_lint do |name, linter|
    it name do
      result = linter.new(dataset, data).lint(name)
      expect(result).to be_truthy
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rom-0.7.1 lib/rom/lint/spec.rb
rom-0.7.0 lib/rom/lint/spec.rb
rom-0.6.2 lib/rom/lint/spec.rb
rom-0.6.1 lib/rom/lint/spec.rb
rom-0.6.0 lib/rom/lint/spec.rb
rom-0.6.0.rc1 lib/rom/lint/spec.rb
rom-0.6.0.beta3 lib/rom/lint/spec.rb
rom-0.6.0.beta2 lib/rom/lint/spec.rb
rom-0.6.0.beta1 lib/rom/lint/spec.rb