Add test for python-software-properties package
[puppet-modules/puppetlabs-apt.git] / spec / classes / apt_spec.rb
index e21c78ef9a423fc4792d158b044a11dc8e02a5b2..812fa123c7d3e9165b1f9a1660bf47b2de1287aa 100644 (file)
@@ -124,4 +124,9 @@ describe 'apt', :type => :class do
       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