projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All these files that we ignore on heavy exim hosts have not changed in the last 4...
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
spec
/
acceptance
/
to_bytes_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/acceptance/to_bytes_spec.rb
b/3rdparty/modules/stdlib/spec/acceptance/to_bytes_spec.rb
old mode 100755
(executable)
new mode 100644
(file)
index
2b4c61f
..
f042fe0
--- a/
3rdparty/modules/stdlib/spec/acceptance/to_bytes_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/acceptance/to_bytes_spec.rb
@@
-1,17
+1,15
@@
-#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
require 'spec_helper_acceptance'
-describe 'to_bytes function'
, :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))
do
+describe 'to_bytes function' do
describe 'success' do
describe 'success' do
- it 'converts kB to B' do
- pp = <<-EOS
+ pp = <<-DOC
$o = to_bytes('4 kB')
notice(inline_template('to_bytes is <%= @o.inspect %>'))
$o = to_bytes('4 kB')
notice(inline_template('to_bytes is <%= @o.inspect %>'))
- EOS
-
+ DOC
+ it 'converts kB to B' do
apply_manifest(pp, :catch_failures => true) do |r|
apply_manifest(pp, :catch_failures => true) do |r|
- m = r.stdout.match(
/to_bytes is (\d+)\D/
)
- expect(m[1]).to eq(
"4096"
)
+ m = r.stdout.match(
%r{to_bytes is (\d+)\D}
)
+ expect(m[1]).to eq(
'4096'
)
end
end
it 'works without the B in unit'
end
end
it 'works without the B in unit'