spec/rpm_spec.rb in linux_admin-0.4.1 vs spec/rpm_spec.rb in linux_admin-0.5.0
- old
+ new
@@ -24,6 +24,11 @@
"libpng" =>"1.2.49-1.el6_2",
"libdhash" =>"0.4.2-9.el6",
"zlib-devel" =>"1.2.3-29.el6",
})
end
+
+ it ".upgrade" do
+ described_class.should_receive(:run).with("rpm -U", {:params=>{nil=>"abc"}}).and_return(CommandResult.new("", "", 0))
+ expect(described_class.upgrade("abc")).to be_true
+ end
end
\ No newline at end of file