diff options
author | Luke Kanies <luke@madstop.com> | 2007-09-07 12:10:59 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-09-07 12:10:59 -0500 |
commit | 9af79f117221d93f0d13a2c5ea3e886c6a9d939e (patch) | |
tree | 1470b73877b2d46c16f0e6ff4b15d4088b6a636f /test/rails/railsresource.rb | |
parent | 50874b2f1801b6ad2884803e98bbd220ef4af1bd (diff) | |
download | puppet-9af79f117221d93f0d13a2c5ea3e886c6a9d939e.tar.gz puppet-9af79f117221d93f0d13a2c5ea3e886c6a9d939e.tar.xz puppet-9af79f117221d93f0d13a2c5ea3e886c6a9d939e.zip |
Fixing some failed tests. Mostly cleanup. Next is to make all of the user tests pass again, dammit.
Diffstat (limited to 'test/rails/railsresource.rb')
-rwxr-xr-x | test/rails/railsresource.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/rails/railsresource.rb b/test/rails/railsresource.rb index b8e5450b3..ca582b8b0 100755 --- a/test/rails/railsresource.rb +++ b/test/rails/railsresource.rb @@ -7,12 +7,14 @@ require 'puppet/rails' require 'puppettest' require 'puppettest/railstesting' require 'puppettest/resourcetesting' +require 'puppettest/parsertesting' # Don't do any tests w/out this class if Puppet.features.rails? class TestRailsResource < Test::Unit::TestCase include PuppetTest::RailsTesting include PuppetTest::ResourceTesting + include PuppetTest::ParserTesting def setup super @@ -55,7 +57,7 @@ class TestRailsResource < Test::Unit::TestCase resource = mktest_resource # We need a scope - interp, scope, source = mkclassframing + scope = mkscope # Find the new resource and include all it's parameters. resource = Puppet::Rails::Resource.find_by_id(resource.id) @@ -69,7 +71,7 @@ class TestRailsResource < Test::Unit::TestCase assert_equal("root", res[:owner]) assert_equal("644", res[:mode]) assert_equal("/tmp/to_resource", res.title) - assert_equal(source, res.source) + assert_equal(scope.source, res.source) end def test_parameters @@ -111,7 +113,7 @@ class TestExportedResources < PuppetTest::TestCase def setup super Puppet[:trace] = false - @interp, @scope, @source = mkclassframing + @scope = mkscope end confine "Missing rails support" => Puppet.features.rails? |