Commit f51039a

mo khan <mo@mokhan.ca>
2022-05-13 20:55:01
test: update tests to match string data type
1 parent 9470f7c
Changed files (2)
spec/scim/kit/v2/error_spec.rb
@@ -12,5 +12,5 @@ RSpec.describe Scim::Kit::V2::Error do
   specify { expect(subject.to_h[:schemas]).to match_array([Scim::Kit::V2::Messages::ERROR]) }
   specify { expect(subject.to_h[:scimType]).to eql('invalidSyntax') }
   specify { expect(subject.to_h[:detail]).to eql('error') }
-  specify { expect(subject.to_h[:status]).to be(400) }
+  specify { expect(subject.to_h[:status]).to eql('400') }
 end
spec/scim/kit/v2/resource_spec.rb
@@ -590,6 +590,6 @@ RSpec.describe Scim::Kit::V2::Resource do
     specify { expect(subject.to_h[:schemas]).to match_array([Scim::Kit::V2::Messages::ERROR]) }
     specify { expect(subject.to_h[:scimType]).to eql('invalidSyntax') }
     specify { expect(subject.to_h[:detail]).to eql('error') }
-    specify { expect(subject.to_h[:status]).to be(400) }
+    specify { expect(subject.to_h[:status]).to eql('400') }
   end
 end