diff options
author | Luke Kanies <luke@madstop.com> | 2008-05-15 19:34:21 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-15 19:34:21 -0500 |
commit | ac79a79c8d7713068243209f782bf16077dd3d37 (patch) | |
tree | e1cccee51936156b0a9509c62f727aebe806e4bf /test | |
parent | d02334f114a73facd2b3a90f35cb1f3c04365e2f (diff) | |
download | puppet-ac79a79c8d7713068243209f782bf16077dd3d37.tar.gz puppet-ac79a79c8d7713068243209f782bf16077dd3d37.tar.xz puppet-ac79a79c8d7713068243209f782bf16077dd3d37.zip |
Duh, fixing all of the paths being loaded for spec in the moved tests.
Diffstat (limited to 'test')
-rwxr-xr-x | test/ral/providers/provider.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ral/providers/provider.rb b/test/ral/providers/provider.rb index 2196fafce..349a56d5e 100755 --- a/test/ral/providers/provider.rb +++ b/test/ral/providers/provider.rb @@ -82,6 +82,18 @@ class TestProvider < Test::Unit::TestCase assert(! provider.suitable?) end + # #1197 - the binary should not be + def test_command_checks_for_binaries_each_time + provider = newprovider + + provider.commands :testing => "/no/such/path" + + provider.expects(:binary).returns "/no/such/path" + + provider.command(:testing) + assert_equal("/no/such/path", provider.command(:testing), "Did not return correct binary path") + end + def test_command {:echo => "echo", :echo_with_path => echo, :missing => "nosuchcommand", :missing_qualified => "/path/to/nosuchcommand"}.each do |name, command| provider = newprovider |