summaryrefslogtreecommitdiff
path: root/spec/unit/resource/user_spec.rb
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-12-30 12:03:08 -0800
committerPete Higgins <pete@peterhiggins.org>2020-12-30 12:04:14 -0800
commitcbcee1199d5d5d27e94d559a4b2b254fe93c8a38 (patch)
tree490e65b6f89c0b92944a30c850e4378c5ce6280c /spec/unit/resource/user_spec.rb
parentc46440d349b2328dab9a868559dcb72ffb0b426d (diff)
downloadchef-cbcee1199d5d5d27e94d559a4b2b254fe93c8a38.tar.gz
Coerce uid and gid to integer to prevent failures in Windows.coerce-user-uid-and-gid-to-integer
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit/resource/user_spec.rb')
-rw-r--r--spec/unit/resource/user_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/user_spec.rb b/spec/unit/resource/user_spec.rb
index 58c17024af..5f8c189502 100644
--- a/spec/unit/resource/user_spec.rb
+++ b/spec/unit/resource/user_spec.rb
@@ -85,7 +85,7 @@ end
it "allows a string" do
resource.send(attrib, "100")
- expect(resource.send(attrib)).to eql("100")
+ expect(resource.send(attrib)).to eql(100)
end
it "allows an integer" do
@@ -94,7 +94,7 @@ end
end
it "does not allow a hash" do
- expect { resource.send(attrib, { woot: "i found it" }) }.to raise_error(ArgumentError)
+ expect { resource.send(attrib, { woot: "i found it" }) }.to raise_error(TypeError)
end
end