summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-05-20 08:05:23 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-05-21 10:13:39 -0500
commit9a8bddb8d0a19cc17cae04f61e325873aab82fc6 (patch)
treec614f6186f7eba48c8839acb3feca6a0a00aa104
parent3dbdadec97c55df9a68214668d957198aae5f900 (diff)
downloadchef-9a8bddb8d0a19cc17cae04f61e325873aab82fc6.tar.gz
Added spec for as_urijdm/1848
-rw-r--r--spec/unit/mixin/uris_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/mixin/uris_spec.rb b/spec/unit/mixin/uris_spec.rb
index 7de29233fe..d4985c4f67 100644
--- a/spec/unit/mixin/uris_spec.rb
+++ b/spec/unit/mixin/uris_spec.rb
@@ -44,4 +44,14 @@ describe Chef::Mixin::Uris do
end
end
+ describe "#as_uri" do
+ it "parses a file scheme uri with spaces" do
+ expect{ uris.as_uri("file:///c:/foo bar.txt") }.not_to raise_exception
+ end
+
+ it "returns a URI object" do
+ expect( uris.as_uri("file:///c:/foo bar.txt") ).to be_a(URI)
+ end
+ end
+
end