Sha256: a9bb74ff6994c20ace28bcbebf833cf13967f461e4678de1100a6815c226a20a
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module ExternalServices module RSpec module Configuration extend ActiveSupport::Concern def add_external_service(name) Disabler.add_external_service name mod = Module.new do define_method :"describe_#{name}_api" do |object:, **kwargs, &blk| describe_external_service_api(object: object, api_name: name, **kwargs, &blk) end end extend mod end end end end RSpec::Core::Configuration.include ExternalServices::RSpec::Configuration
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
external_services-0.5.4 | lib/rspec/configuration.rb |