Commit e0b29c0

mo <mo.khan@gmail.com>
2019-01-06 03:37:10
start to write specs for attribute class
1 parent ae464b5
Changed files (1)
spec
spec/scim/kit/v2/attribute_spec.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+RSpec.describe Scim::Kit::V2::Attribute do
+  subject { described_class.new(type: type) }
+
+  context 'with custom string attribute' do
+    let(:type) { Scim::Kit::V2::AttributeType.new(name: 'userName', type: :string) }
+    let(:user_name) { FFaker::Internet.user_name }
+
+    before { subject.value = user_name }
+
+    specify { expect(subject.value).to eql(user_name) }
+  end
+end