From a1409d73b4bb8acbf5db2f8d7a244c2bca81db14 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 15 May 2008 23:09:58 -0500 Subject: 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. --- test/ral/providers/provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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") -- cgit