diff options
author | Luke Kanies <luke@madstop.com> | 2008-05-15 23:09:58 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-15 23:09:58 -0500 |
commit | a1409d73b4bb8acbf5db2f8d7a244c2bca81db14 (patch) | |
tree | 5592eae3f085717898fc905527f2a38ebabb22e8 /test | |
parent | 995991d8740baff52cee057752c428d0259e2be1 (diff) | |
download | puppet-a1409d73b4bb8acbf5db2f8d7a244c2bca81db14.tar.gz puppet-a1409d73b4bb8acbf5db2f8d7a244c2bca81db14.tar.xz puppet-a1409d73b4bb8acbf5db2f8d7a244c2bca81db14.zip |
Moving all confine code out of the Provider class, and fixing #1197.
I created a Confiner module for the Provider class methods,
and then I enhanced the interface between it and the Confine
class to make sure binary paths are searched for fresh each time.
This fixes #1197, which was a result of binary paths being
searched for at startup, rather than at execution.
Diffstat (limited to 'test')
-rwxr-xr-x | test/ral/providers/provider.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ral/providers/provider.rb b/test/ral/providers/provider.rb index f284e9125..70f606a37 100755 --- a/test/ral/providers/provider.rb +++ b/test/ral/providers/provider.rb @@ -97,7 +97,7 @@ class TestProvider < Test::Unit::TestCase provider.commands :testing => "/no/such/path" - provider.expects(:binary).returns "/no/such/path" + provider.stubs(:binary).returns "/no/such/path" provider.command(:testing) assert_equal("/no/such/path", provider.command(:testing), "Did not return correct binary path") |