spec/rpm_spec.rb in linux_admin-0.5.7 vs spec/rpm_spec.rb in linux_admin-0.6.0
- old
+ new
@@ -25,9 +25,14 @@
"libdhash" =>"0.4.2-9.el6",
"zlib-devel" =>"1.2.3-29.el6",
})
end
+ it ".import_key" do
+ described_class.should_receive(:run).with("rpm", {:params=>{"--import"=>"abc"}}).and_return(CommandResult.new("", "", "", 0))
+ expect(described_class.import_key("abc")).to be_true
+ end
+
describe "#info" do
it "returns package metadata" do
# as output w/ rpm -qi ruby on F19
data = <<EOS
Name : ruby