Merge pull request #23 from haus/python_properties
[puppet-modules/puppetlabs-apt.git] / spec / classes / apt_spec.rb
index 6ab1e9e6d64de8186d01b4585dbe0aaeb8bc7ea1..71a438e0627780794fdfb47f1fbad687d6ab3fe4 100644 (file)
@@ -126,4 +126,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