Sha256: 2c70f2d684dcbe70f72dd9f01c6f682dc1962791f0b88603203a23c429de49fb

Contents?: true

Size: 434 Bytes

Versions: 24

Compression:

Stored size: 434 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.registered_modules).not_to include(described_class)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
avm-0.26.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.8.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.7.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.25.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.6.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.5.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.24.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.4.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.3.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
eac_tools-0.2.2 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.23.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.22.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-tools-0.120.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.21.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-tools-0.119.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-0.20.0 lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-tools-0.118.0 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-tools-0.117.3 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-tools-0.117.2 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb
avm-tools-0.117.1 sub/avm/lib/avm/rspec/shared_examples/not_in_avm_registry.rb