projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update puppetlabs/stdlib module
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
spec
/
functions
/
unix2dos_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/functions/unix2dos_spec.rb
b/3rdparty/modules/stdlib/spec/functions/unix2dos_spec.rb
index
8537a26
..
a6af64f
100644
(file)
--- a/
3rdparty/modules/stdlib/spec/functions/unix2dos_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/functions/unix2dos_spec.rb
@@
-1,13
+1,13
@@
require 'spec_helper'
describe 'unix2dos' do
require 'spec_helper'
describe 'unix2dos' do
- context '
C
hecking parameter validity' do
+ context '
when c
hecking parameter validity' do
it { is_expected.not_to eq(nil) }
it do
it { is_expected.not_to eq(nil) }
it do
- is_expected.to run.with_params.and_raise_error(ArgumentError,
/Wrong number of arguments/
)
+ is_expected.to run.with_params.and_raise_error(ArgumentError,
%r{Wrong number of arguments}
)
end
it do
end
it do
- is_expected.to run.with_params('one', 'two').and_raise_error(ArgumentError,
/Wrong number of arguments/
)
+ is_expected.to run.with_params('one', 'two').and_raise_error(ArgumentError,
%r{Wrong number of arguments}
)
end
it do
is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError)
end
it do
is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError)
@@
-20,21
+20,21
@@
describe 'unix2dos' do
end
end
end
end
- context '
C
onverting from unix to dos format' do
+ context '
when c
onverting from unix to dos format' do
sample_text = "Hello\nWorld\n"
desired_output = "Hello\r\nWorld\r\n"
sample_text = "Hello\nWorld\n"
desired_output = "Hello\r\nWorld\r\n"
- it '
should output
dos format' do
-
should
run.with_params(sample_text).and_return(desired_output)
+ it '
outputs
dos format' do
+
is_expected.to
run.with_params(sample_text).and_return(desired_output)
end
end
end
end
- context '
C
onverting from dos to dos format' do
+ context '
when c
onverting from dos to dos format' do
sample_text = "Hello\r\nWorld\r\n"
desired_output = "Hello\r\nWorld\r\n"
sample_text = "Hello\r\nWorld\r\n"
desired_output = "Hello\r\nWorld\r\n"
- it '
should output
dos format' do
-
should
run.with_params(sample_text).and_return(desired_output)
+ it '
outputs
dos format' do
+
is_expected.to
run.with_params(sample_text).and_return(desired_output)
end
end
end
end
end
end