Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123473
abs_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
671 B
Subscribers
None
abs_spec.rb
View Options
require
'spec_helper'
if
Puppet
::
Util
::
Package
.
versioncmp
(
Puppet
.
version
,
'6.0.0'
)
<
0
describe
'abs'
do
it
{
is_expected
.
not_to
eq
(
nil
)
}
it
{
is_expected
.
to
run
.
with_params
(
-
34
)
.
and_return
(
34
)
}
it
{
is_expected
.
to
run
.
with_params
(
'-34'
)
.
and_return
(
34
)
}
it
{
is_expected
.
to
run
.
with_params
(
34
)
.
and_return
(
34
)
}
it
{
is_expected
.
to
run
.
with_params
(
'34'
)
.
and_return
(
34
)
}
it
{
is_expected
.
to
run
.
with_params
(
-
34
.
5
)
.
and_return
(
34
.
5
)
}
it
{
is_expected
.
to
run
.
with_params
(
'-34.5'
)
.
and_return
(
34
.
5
)
}
it
{
is_expected
.
to
run
.
with_params
(
34
.
5
)
.
and_return
(
34
.
5
)
}
it
{
is_expected
.
to
run
.
with_params
(
'34.5'
)
.
and_return
(
34
.
5
)
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 5:32 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3353434
Attached To
rSPSTD puppet-puppetlabs-stdlib
Event Timeline
Log In to Comment