Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Module sync 1d81b6a
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
source_compat_spec.rb
diff --git
a/spec/defines/source_compat_spec.rb
b/spec/defines/source_compat_spec.rb
index c6b6aefc2eff797b17f6229a2bc94c090e09e037..23f9549052535ed934f5d37a13eb11cd7f45936b 100644
(file)
--- a/
spec/defines/source_compat_spec.rb
+++ b/
spec/defines/source_compat_spec.rb
@@
-26,7
+26,7
@@
describe 'apt::source', type: :define do
end
it {
end
it {
- is_expected.to contain_apt__setting('list-my_source').with_content(
/# my_source\ndeb-src http:\/\/debian\.mirror\.iweb\.ca\/debian\/ wheezy main\n/
)
+ is_expected.to contain_apt__setting('list-my_source').with_content(
%r{# my_source\ndeb-src http://debian.mirror.iweb.ca/debian/ wheezy main\n}
)
}
end
}
end
@@
-55,7
+55,8
@@
describe 'apt::source', type: :define do
end
it {
end
it {
- is_expected.to contain_apt__setting('list-my_source').with_content(/# foo\ndeb \[arch=x86_64 trusted=yes\] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ sid testing\n/).without_content(%r{deb-src}) # rubocop:disable Metrics/LineLength
+ is_expected.to contain_apt__setting('list-my_source').with_content(%r{# foo\ndeb \[arch=x86_64 trusted=yes\] http://debian.mirror.iweb.ca/debian/ sid testing\n})
+ .without_content(%r{deb-src})
}
it {
}
it {
@@
-88,7
+89,7
@@
describe 'apt::source', type: :define do
}
end
}
end
- it { is_expected.to contain_apt__setting('list-my_source').with_content(
/# my_source\ndeb \[trusted=yes\] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ wheezy main\n/
) }
+ it { is_expected.to contain_apt__setting('list-my_source').with_content(
%r{# my_source\ndeb \[trusted=yes\] http://debian.mirror.iweb.ca/debian/ wheezy main\n}
) }
end
context 'architecture equals x86_64' do
end
context 'architecture equals x86_64' do
@@
-109,7
+110,7
@@
describe 'apt::source', type: :define do
end
it {
end
it {
- is_expected.to contain_apt__setting('list-my_source').with_content(
/# my_source\ndeb \[arch=x86_64\] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ wheezy main\n/
)
+ is_expected.to contain_apt__setting('list-my_source').with_content(
%r{# my_source\ndeb \[arch=x86_64\] http://debian.mirror.iweb.ca/debian/ wheezy main\n}
)
}
end
}
end
@@
-146,7
+147,7
@@
describe 'apt::source', type: :define do
end
it do
end
it do
-
expect { subject.call }
.to raise_error(Puppet::Error, %r{lsbdistcodename fact not available: release parameter required})
+
is_expected
.to raise_error(Puppet::Error, %r{lsbdistcodename fact not available: release parameter required})
end
end
end
end
end
end