Sha256: 199754ea78393f3b031446c8fad692c77b1fffce7cf026b8347e99a10bd1cd14

Contents?: true

Size: 892 Bytes

Versions: 5

Compression:

Stored size: 892 Bytes

Contents

require 'helpers/request_helpers'
shared_context api: :dummy do
  include RequestHelpers
  subject { api }
end

shared_examples_for 'standard_create with' do |type, id, options|
  it "calls through to standard_create" do
    expect(subject).to receive(:standard_create).with(
      core_host, type, id, options
    ).and_return :response
    expect(invoke).to eq(:response)
  end
end

shared_examples_for 'standard_list with' do |type, options|
  it "calls through to standard_list" do
    expect(subject).to receive(:standard_list).with(
      core_host, type, options
    ).and_return :response
    expect(invoke).to eq(:response)
  end
end

shared_examples_for 'standard_show with' do |type, id|
  it "calls through to standard_show" do
    expect(subject).to receive(:standard_show).with(
      core_host, type, id
    ).and_return :response
    expect(invoke).to eq(:response)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
conjur-api-4.19.1 spec/standard_methods_helper.rb
conjur-api-4.19.0 spec/standard_methods_helper.rb
conjur-api-4.16.0 spec/standard_methods_helper.rb
conjur-api-4.15.0 spec/standard_methods_helper.rb
conjur-api-4.14.0 spec/standard_methods_helper.rb