diff options
author | Luke Kanies <luke@madstop.com> | 2009-05-24 15:15:33 -0500 |
---|---|---|
committer | James Turnbull <james@ubuntu904.lovedthanlost.net> | 2009-05-26 13:43:39 +1000 |
commit | d860a2fb71858706ff318cfcdc0ff387840eef80 (patch) | |
tree | 7abe0f95aaf90bc9c01374ddf5fe8e72b17af3ee /test | |
parent | a72875799ecfa78ed91ff31047971441f0f169c3 (diff) | |
download | puppet-d860a2fb71858706ff318cfcdc0ff387840eef80.tar.gz puppet-d860a2fb71858706ff318cfcdc0ff387840eef80.tar.xz puppet-d860a2fb71858706ff318cfcdc0ff387840eef80.zip |
Fixing a transaction test that had some broken plumbing
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/other/transactions.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/other/transactions.rb b/test/other/transactions.rb index 6145b19c5..8375145f9 100755 --- a/test/other/transactions.rb +++ b/test/other/transactions.rb @@ -13,6 +13,8 @@ class TestTransactions < Test::Unit::TestCase include PuppetTest::Support::Resources include PuppetTest::Support::Utils class Fakeprop <Puppet::Property + initvars() + attr_accessor :path, :is, :should, :name def should_to_s(value) value.to_s @@ -23,6 +25,13 @@ class TestTransactions < Test::Unit::TestCase def info(*args) false end + + def set(value) + # eh + end + + def log(msg) + end end @@ -595,7 +604,7 @@ class TestTransactions < Test::Unit::TestCase type = mkreducer do def evaluate return Puppet::Transaction::Change.new(Fakeprop.new( - :path => :path, :is => :is, :should => :should, :name => self.name, :resource => "a parent"), :is) + :path => :path, :is => "start_value", :should => "desired_value", :name => self.name, :resource => "fake_parent"), :is) end end @@ -613,7 +622,7 @@ class TestTransactions < Test::Unit::TestCase assert(changes.length > 0, "did not get any changes") changes.each do |change| - assert_equal(resource, change.resource, "change did not get proxy set correctly") + assert_equal(resource.object_id, change.resource.object_id, "change did not get proxy set correctly") end end |