diff options
| author | Luke Kanies <luke@madstop.com> | 2008-07-03 18:50:56 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-07-03 18:50:56 -0500 |
| commit | 73c06c05aec8834b6fdebac107fb289575779020 (patch) | |
| tree | 4db34c01a8a7de3032c97514a2b16d754447ca17 /test | |
| parent | 6124c693c98217bdb747f455eefd09d303b0b2a5 (diff) | |
| download | puppet-73c06c05aec8834b6fdebac107fb289575779020.tar.gz puppet-73c06c05aec8834b6fdebac107fb289575779020.tar.xz puppet-73c06c05aec8834b6fdebac107fb289575779020.zip | |
Renaming Puppet::Event to Puppet::Transaction::Event
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test')
| -rwxr-xr-x | test/other/transaction_change.rb | 4 | ||||
| -rwxr-xr-x | test/other/transactions.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/other/transaction_change.rb b/test/other/transaction_change.rb index 292f59334..d8776f961 100755 --- a/test/other/transaction_change.rb +++ b/test/other/transaction_change.rb @@ -82,7 +82,7 @@ class TestTransactionChange < Test::Unit::TestCase events = change.go end assert_instance_of(Array, events, "events were not returned in an array") - assert_instance_of(Puppet::Event, events[0], "event array did not contain events") + assert_instance_of(Puppet::Transaction::Event, events[0], "event array did not contain events") event = events.shift {:event => :fake_change, :transaction => :trans, :source => :parent}.each do |method, val| @@ -105,7 +105,7 @@ class TestTransactionChange < Test::Unit::TestCase end assert_instance_of(Array, events, "events were not returned in an array") - assert_instance_of(Puppet::Event, events[0], "event array did not contain events") + assert_instance_of(Puppet::Transaction::Event, events[0], "event array did not contain events") event = events.shift {:event => :fake_change, :transaction => :trans, :source => :other}.each do |method, val| diff --git a/test/other/transactions.rb b/test/other/transactions.rb index a517ac731..ff266b8d9 100755 --- a/test/other/transactions.rb +++ b/test/other/transactions.rb @@ -796,7 +796,7 @@ class TestTransactions < Test::Unit::TestCase def test_proxy_resources type = mkreducer do def evaluate - return Puppet::PropertyChange.new(Fakeprop.new( + return Puppet::Transaction::Change.new(Fakeprop.new( :path => :path, :is => :is, :should => :should, :name => self.name, :resource => "a parent"), :is) end end @@ -905,7 +905,7 @@ class TestTransactions < Test::Unit::TestCase assert(result, "c did not trigger anything") assert_instance_of(Array, result) event = result.shift - assert_instance_of(Puppet::Event, event) + assert_instance_of(Puppet::Transaction::Event, event) assert_equal(:triggered, event.event, "event was not set correctly") assert_equal(c, event.source, "source was not set correctly") assert_equal(trans, event.transaction, "transaction was not set correctly") @@ -995,7 +995,7 @@ class TestTransactions < Test::Unit::TestCase newparam(:name) {} newproperty(:testing) do def sync - self.is = self.should + # noop :ran_testing end end |
