diff options
Diffstat (limited to 'test/ral/manager/type.rb')
-rwxr-xr-x | test/ral/manager/type.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ral/manager/type.rb b/test/ral/manager/type.rb index 5190bc7c7..5fd4fd622 100755 --- a/test/ral/manager/type.rb +++ b/test/ral/manager/type.rb @@ -238,7 +238,7 @@ class TestType < Test::Unit::TestCase file = nil fileclass = Puppet::Type.type(:file) - path = tempfile() + path = tempfile assert_nothing_raised do file = fileclass.create( @@ -301,7 +301,7 @@ class TestType < Test::Unit::TestCase # Now do files, since they are. This should fail. file1 = file2 = nil - path = tempfile() + path = tempfile file1 = Puppet::Type.type(:file).new( @@ -324,7 +324,7 @@ class TestType < Test::Unit::TestCase end def test_tags - obj = Puppet::Type.type(:file).new(:path => tempfile()) + obj = Puppet::Type.type(:file).new(:path => tempfile) tags = ["some", "test", "tags"] @@ -336,7 +336,7 @@ class TestType < Test::Unit::TestCase end def test_to_hash - file = Puppet::Type.newfile :path => tempfile(), :owner => "luke", + file = Puppet::Type.newfile :path => tempfile, :owner => "luke", :recurse => true, :loglevel => "warning" hash = nil @@ -350,7 +350,7 @@ class TestType < Test::Unit::TestCase end def test_ref - path = tempfile() + path = tempfile Puppet::Type.type(:exec) # uggh, the methods need to load the types file = Puppet::Type.newfile(:path => path) assert_equal("File[#{path}]", file.ref) |