Fixed #1711 - fileserver test fails due to incorrect mocking

This commit is contained in:
James Turnbull 2008-11-19 18:55:57 +11:00
Родитель 8523a48315
Коммит c96d250f71
2 изменённых файлов: 7 добавлений и 0 удалений

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

@ -1,4 +1,6 @@
0.24.x
Fixed #1711 - fileserver test fails due to incorrect mocking
Fixed #1751 - Mac OS X DirectoryService nameservice provider support for
plist output and password hash fil

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

@ -980,6 +980,11 @@ allow *
}
dir = tempfile()
# When mocks attack, part 2
kernel_fact = Facter.value(:kernel)
Facter.stubs(:value).with(:kernel).returns(kernel_fact)
Facter.stubs(:value).with(:ipaddress).returns("127.0.0.1")
Facter.stubs(:value).with { |v| v.to_s == "hostname" }.returns("myhost")
Facter.stubs(:value).with { |v| v.to_s == "domain" }.returns("mydomain.com")