git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2763 980ebf18-57e1-0310-9a29-db15c13687c0
This commit is contained in:
(no author) 2007-08-09 09:41:25 +00:00
Родитель ada960be3a
Коммит d2f2bc0ee4
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -52,8 +52,8 @@ class TestCertInventory < Test::Unit::TestCase
cert = mksignedcert(ca, "host.domain.com")
assert_nothing_raised do
file = nil
file.expects(:puts).times(1).with do |written|
file = mock()
file.expects(:puts).with do |written|
written.include? cert.subject.to_s
end
Puppet::Util::Config.any_instance.stubs(:write)

Просмотреть файл

@ -64,8 +64,7 @@ class TestXMLRPCProcessor < Test::Unit::TestCase
request.expects(:handler=).with("myhandler")
request.expects(:method=).with("mymethod")
# I can't get this expectation to take with the argument, for some reason.
@processor.expects(:verify)
@processor.expects(:verify).times(2)
@processor.expects(:handle).with(request.call,
"params", request.name, request.ip)