diff options
| author | Luke Kanies <luke@madstop.com> | 2009-03-11 23:52:53 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-03-11 23:52:53 -0500 |
| commit | 88aa1bc2cfef4517fca9e467c86f70ae356be883 (patch) | |
| tree | e3ab7739abe41c9110004abd41d1c8618b2c1753 /test/network | |
| parent | f8dea989e3f5bd7d3d823a6c3dc3cf76cd5cba4e (diff) | |
| download | puppet-88aa1bc2cfef4517fca9e467c86f70ae356be883.tar.gz puppet-88aa1bc2cfef4517fca9e467c86f70ae356be883.tar.xz puppet-88aa1bc2cfef4517fca9e467c86f70ae356be883.zip | |
Fixing tests broken in previous commits
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/network')
| -rwxr-xr-x | test/network/client/resource.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/test/network/client/resource.rb b/test/network/client/resource.rb index 3ad9282bb..ba84fc27e 100755 --- a/test/network/client/resource.rb +++ b/test/network/client/resource.rb @@ -35,29 +35,20 @@ class TestResourceClient < Test::Unit::TestCase client = mkclient() # Test describing - tresource = nil - assert_nothing_raised { - tresource = client.describe("file", file) - } + tresource = client.describe("file", file) assert(tresource, "Did not get response") assert_instance_of(Puppet::TransObject, tresource) - resource = nil - assert_nothing_raised { - resource = tresource.to_ral - } + resource = tresource.to_ral assert_events([], resource) File.unlink(file) assert_events([:file_created], resource) File.unlink(file) # Now test applying - result = nil - assert_nothing_raised { - result = client.apply(tresource) - } + result = client.apply(tresource) assert(FileTest.exists?(file), "File was not created on apply") end end |
