Sha256: 9935de6a2368c5da57ed0162c97b85810b3bb71ec07637f123c209b6a33d06e2
Contents?: true
Size: 711 Bytes
Versions: 9
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' require 'conjur/api' shared_examples_for "properties" do subject { role } its(:kind) { should == kind } its(:id) { should == id } end describe Conjur::Role do let(:account) { "the-account" } context "#new" do let(:kind) { "test" } let(:role) { Conjur::API.new_from_key('the-user', 'the-key').role([ account, kind, id ].join(":")) } let(:token) { 'the-token' } before { Conjur::TokenCache.stub(:fetch).and_return token } context "with plain id" do let(:id) { "foo" } it_should_behave_like "properties" end context "with more complex id" do let(:id) { "foo/bar" } it_should_behave_like "properties" end end end
Version data entries
9 entries across 9 versions & 1 rubygems