Sha256: c334b3f8197f1784dbd64b238fbe3b8c875bfc9ce34c5aa7f24e53a06e7c2323

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

describe Conjur::Group, api: :dummy do
  let(:id) { 'the-anonymous' }
  subject { api.group id }

  describe '#update' do
    it "PUTs to /groups/:id" do
      expect(RestClient::Request).to receive(:execute).with(
        method: :put,
        url: "#{core_host}/groups/#{api.fully_escape(id)}",
        headers: credentials[:headers],
        payload: { gidnumber: 12345 }
       )
      api.group(id).update(gidnumber: 12345)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conjur-api-4.13.0 spec/lib/group_spec.rb