Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394006
bool_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
614 B
Subscribers
None
bool_spec.rb
View Options
require
'spec_helper'
if
Puppet
::
Util
::
Package
.
versioncmp
(
Puppet
.
version
,
'4.5.0'
)
>=
0
describe
'Stdlib::Compat::Bool'
do
describe
'accepts booleans'
do
[
true
,
false
,
].
each
do
|
value
|
describe
value
.
inspect
do
it
{
is_expected
.
to
allow_value
(
value
)
}
end
end
end
describe
'rejects other values'
do
[
[
1
]
,
[
{}
]
,
[
true
]
,
'true'
,
'false'
,
].
each
do
|
value
|
describe
value
.
inspect
do
it
{
is_expected
.
not_to
allow_value
(
value
)
}
end
end
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Wed, Jun 4, 7:20 PM (1 w, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399090
Attached To
rSPSTD puppet-puppetlabs-stdlib
Event Timeline
Log In to Comment