Sha256: 19637bd95e28e01b0e236510fb3045bb8d5f8e871bd0bed2509dc6c70bd4980a
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
require 'spec_helper' describe Conjur::Host, api: :dummy do subject { Conjur::Host.new 'http://example.com/hosts/my/hostname', nil } its(:resource) { should be } its(:login) { should == 'host/my/hostname' } it "fetches enrollment_url" do stub_request(:head, "http://example.com/hosts/my/hostname/enrollment_url"). to_return(:status => 200, :headers => {location: 'foo'}) subject.enrollment_url.should == 'foo' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-api-4.4.1 | spec/lib/host_spec.rb |
conjur-api-4.4.0 | spec/lib/host_spec.rb |