Sha256: 887cba1031ce5d3ec997e18f56f2c64ccb48565fc86464614c526a339da954bb

Contents?: true

Size: 517 Bytes

Versions: 38

Compression:

Stored size: 517 Bytes

Contents

require 'rom/lint/gateway'
require 'rom/lint/enumerable_dataset'

RSpec.shared_examples "a rom gateway" do
  ROM::Lint::Gateway.each_lint do |name, linter|
    it name do
      result = linter.new(identifier, gateway, 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

38 entries across 38 versions & 2 rubygems

Version Path
rom-core-4.2.1 lib/rom/lint/spec.rb
rom-core-4.2.0 lib/rom/lint/spec.rb
rom-core-4.1.2 lib/rom/lint/spec.rb
rom-core-4.1.1 lib/rom/lint/spec.rb
rom-core-4.1.0 lib/rom/lint/spec.rb
rom-core-4.0.2 lib/rom/lint/spec.rb
rom-core-4.0.1 lib/rom/lint/spec.rb
rom-3.3.3 lib/rom/lint/spec.rb
rom-core-4.0.0 lib/rom/lint/spec.rb
rom-3.3.2 lib/rom/lint/spec.rb
rom-core-4.0.0.rc2 lib/rom/lint/spec.rb
rom-core-4.0.0.rc1 lib/rom/lint/spec.rb
rom-core-4.0.0.beta3 lib/rom/lint/spec.rb
rom-3.3.1 lib/rom/lint/spec.rb
rom-core-4.0.0.beta2 lib/rom/lint/spec.rb
rom-3.3.0 lib/rom/lint/spec.rb
rom-core-4.0.0.beta1 lib/rom/lint/spec.rb
rom-3.2.3 lib/rom/lint/spec.rb
rom-3.2.2 lib/rom/lint/spec.rb
rom-3.2.1 lib/rom/lint/spec.rb