spec/unit/provider/package/aptrpm_spec.rb in puppet-3.2.4 vs spec/unit/provider/package/aptrpm_spec.rb in puppet-3.3.0.rc2
- old
+ new
@@ -17,19 +17,19 @@
end
def rpm
pkg.provider.expects(:rpm).
with('-q', 'faff', '--nosignature', '--nodigest', '--qf',
- "%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n")
+ "'%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\\n'")
end
it "should report absent packages" do
rpm.raises(Puppet::ExecutionFailure, "couldn't find rpm")
pkg.property(:ensure).retrieve.should == :absent
end
it "should report present packages correctly" do
- rpm.returns("faff-1.2.3-1 0 1.2.3-1 5 i686\n")
+ rpm.returns("faff-1.2.3-1 0 1.2.3-1 5 i686 :DESC: faff desc\n")
pkg.property(:ensure).retrieve.should == "1.2.3-1-5"
end
end
it "should try and install when asked" do