Sha256: a34409e64f57b466de7e3058c54c1c827de0a72b99a3adc3430d3e620c506830

Contents?: true

Size: 500 Bytes

Versions: 9

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

require 'uri'
require 'webmock/rspec'
require 'avro_schema_registry/test/fake_server'

RSpec.configure do |config|
  config.before(:each) do
    # Strip the username/password from the URL so WebMock can match the URL
    registry_uri = URI(Avromatic.registry_url)
    registry_uri.userinfo = ''

    WebMock.stub_request(:any, /^#{registry_uri}/).to_rack(AvroSchemaRegistry::FakeServer)
    AvroSchemaRegistry::FakeServer.clear
    Avromatic.build_messaging!
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avromatic-3.0.1 lib/avromatic/rspec.rb
avromatic-3.0.0 lib/avromatic/rspec.rb
avromatic-2.4.0 lib/avromatic/rspec.rb
avromatic-2.3.0 lib/avromatic/rspec.rb
avromatic-2.2.6 lib/avromatic/rspec.rb
avromatic-2.2.5 lib/avromatic/rspec.rb
avromatic-2.2.4 lib/avromatic/rspec.rb
avromatic-2.2.3 lib/avromatic/rspec.rb
avromatic-2.2.2 lib/avromatic/rspec.rb