Skip to content

(FM-6085) - Unit tests for Data Types #733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions spec/aliases/absolute_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
/
/var/tmp
/var/opt/../lib/puppet
/var/ůťƒ8
/var/ネット
}.each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand Down Expand Up @@ -50,6 +52,8 @@
etc/puppetlabs/puppet
opt/puppet/bin
relative\\windows
\var\ůťƒ8
\var\ネット
}.each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand Down
6 changes: 5 additions & 1 deletion spec/aliases/httpsurl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
https://hello.com
https://notcreative.org
https://notexciting.co.uk
https://graphemica.com/❤
https://graphemica.com/緩
}.each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand All @@ -26,7 +28,9 @@
'',
"httds://notquiteright.org",
"hptts:/nah",
"https;//notrightbutclose.org"
"https;//notrightbutclose.org",
"http://graphemica.com/❤",
"http://graphemica.com/緩"
].each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand Down
6 changes: 5 additions & 1 deletion spec/aliases/httpurl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
http://anhttp.com
http://runningoutofideas.gov
http://
http://graphemica.com/❤
http://graphemica.com/緩
}.each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand All @@ -29,7 +31,9 @@
'',
"httds://notquiteright.org",
"hptts:/nah",
"https;//notrightbutclose.org"
"https;//notrightbutclose.org",
"hts://graphemica.com/❤",
"https:graphemica.com/緩"
].each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand Down
6 changes: 5 additions & 1 deletion spec/aliases/unixpath_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/usr2/username/bin:/usr/local/bin:/usr/bin:.
/var/tmp
/Users/helencampbell/workspace/puppetlabs-stdlib
/var/ůťƒ8
/var/ネット
}.each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand All @@ -27,7 +29,9 @@
"C:/whatever",
"\\var\\tmp",
"\\Users/hc/wksp/stdlib",
"*/Users//nope"
"*/Users//nope",
"var\ůťƒ8",
"var\ネット"
].each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand Down
7 changes: 5 additions & 2 deletions spec/aliases/windowspath_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
X:/foo/bar
X:\\foo\\bar
\\\\host\\windows
X:/var/ůťƒ8
X:/var/ネット
}.each do |value|
describe value.inspect do
let(:params) {{ value: value }}
Expand All @@ -30,15 +32,16 @@
"httds://notquiteright.org",
"/usr2/username/bin:/usr/local/bin:/usr/bin:.",
"C;//notright/here",
"C:noslashes"
"C:noslashes",
"C:ネット",
"C:ůťƒ8"
].each do |value|
describe value.inspect do
let(:params) {{ value: value }}
it { is_expected.to compile.and_raise_error(/parameter 'value' expects a match for Stdlib::Windowspath/) }
end
end
end

end
end
end