Sha256: f42a73533faae02810d0517c20d28b5f1eba0b0823f8ee92a25df97dc22bc402
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require 'spec_helper' require 'conjur/api' shared_examples_for "properties" do subject { role } its(:id) { should == id } end describe Conjur::Role do context "#new" do let(:url) { "#{Conjur::Authz::API.host}/roles/#{id}" } let(:credentials) { mock(:credentials) } let(:role) { Conjur::Role.new(url, credentials) } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-api-2.0.1 | spec/lib/role_spec.rb |
conjur-api-2.0.0 | spec/lib/role_spec.rb |