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
Merge pull request #23 from haus/python_properties
[puppet-modules/puppetlabs-apt.git]
/
spec
/
classes
/
apt_spec.rb
diff --git
a/spec/classes/apt_spec.rb
b/spec/classes/apt_spec.rb
index 6ab1e9e6d64de8186d01b4585dbe0aaeb8bc7ea1..71a438e0627780794fdfb47f1fbad687d6ab3fe4 100644
(file)
--- a/
spec/classes/apt_spec.rb
+++ b/
spec/classes/apt_spec.rb
@@
-126,4
+126,9
@@
describe 'apt', :type => :class do
end
end
end
end
end
end
+
+ describe "it should not error if package['python-software-properties'] is already defined" do
+ let(:pre_condition) { 'package { "python-software-properties": }->Class["Apt"]' }
+ it { should contain_package("python-software-properties") }
+ end
end
end