Sha256: 9d49be3252ff4b9d70f5a53ef4375b3d05505fc934321b9ec3fdf60aa82eac98

Contents?: true

Size: 908 Bytes

Versions: 12

Compression:

Stored size: 908 Bytes

Contents

require 'spec_helper'
module SamlIdp
  describe AttributeDecorator do
    subject { described_class.new name: name,
              friendly_name: friendly_name,
              name_format: name_format,
              values: values
    }
    let(:name) { nil }
    let(:friendly_name) { nil }
    let(:name_format) { nil }
    let(:values) { nil }

    its(:name) { should be_nil }
    its(:friendly_name) { should be_nil }
    its(:name_format) { should == Saml::XML::Namespaces::Formats::Attr::URI }
    its(:values) { should == [] }

    describe "with values set" do
      let(:name) { "test" }
      let(:friendly_name) { "test too" }
      let(:name_format) { "some format" }
      let(:values) { :val }

      its(:name) { should == name }
      its(:friendly_name) { should == friendly_name }
      its(:name_format) { should == name_format }
      its(:values) { should == [values] }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
saml_idp-0.1.1 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.1.0 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.10 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.9 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.8 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.7 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.6 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.5 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.4 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.3 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.2 spec/lib/saml_idp/attribute_decorator_spec.rb
saml_idp-0.0.1 spec/lib/saml_idp/attribute_decorator_spec.rb