Commit 04b8f58

mokha <mokha@cisco.com>
2019-01-11 23:50:46
default the description to match the name
1 parent ebc523f
Changed files (2)
lib
scim
spec
scim
lib/scim/kit/v2/schema.rb
@@ -13,7 +13,7 @@ module Scim
         def initialize(id:, name:, location:)
           @id = id
           @name = name
-          @description = ''
+          @description = name
           @meta = Meta.new('Schema', location)
           @meta.created = @meta.last_modified = @meta.version = nil
           @attributes = []
spec/scim/kit/v2/schema_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe Scim::Kit::V2::Schema do
 
   specify { expect(result[:id]).to eql(id) }
   specify { expect(result[:name]).to eql(name) }
-  specify { expect(result[:description]).to eql('') }
+  specify { expect(result[:description]).to eql(name) }
   specify { expect(result[:meta][:resourceType]).to eql('Schema') }
   specify { expect(result[:meta][:location]).to eql(location) }