Sha256: 327e8a20b564f6f9d13b18464184b106faa655f6678c5453f1f366904e2aca27

Contents?: true

Size: 419 Bytes

Versions: 34

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require 'avm/registry'

RSpec.shared_examples 'not_in_avm_registry' do |registry_method = nil|
  registry_method.if_present(Avm::Registry.registries) { |v| [Avm::Registry.send(v)] }
    .each do |registry|
    context "when registry is #{registry}" do
      it 'is not in the avm registry' do
        expect(registry.available).not_to include(described_class)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
avm-0.94.1 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.98.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.94.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.94.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.93.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.92.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.92.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.91.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.90.1 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.87.1 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.90.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.87.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.89.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.86.12 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.88.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.86.11 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.87.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.86.8 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.86.2 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.86.7 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb