Sha256: 2f7beccff028ae6961ca31910f102ab869602607beb735ad774561ffe2bafc46

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

shared_examples_for type: :request do |context|
  let(:request_name) { context.metadata[:example_group][:description_args].last.sub('#','').to_sym }
  let(:service) { described_class.new(service_options) }

  def described_request(*args)
    service.send(request_name,*args)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opennorth-represent-0.1.0 spec/support/shared_examples/request_specs.rb