diff options
| author | Casey Dahlin <cdahlin@redhat.com> | 2008-10-10 16:40:57 -0400 |
|---|---|---|
| committer | Casey Dahlin <cdahlin@redhat.com> | 2008-10-10 16:40:57 -0400 |
| commit | 0de5f0747905206cec88b47696ad178867ece286 (patch) | |
| tree | 01a2929682c5bf145d271423a2ffdd778305917b | |
| parent | cccfc879a4e45f3dccecd99533d6dbeb9b2a53b2 (diff) | |
| download | upstate-0de5f0747905206cec88b47696ad178867ece286.tar.gz upstate-0de5f0747905206cec88b47696ad178867ece286.tar.xz upstate-0de5f0747905206cec88b47696ad178867ece286.zip | |
Use State#release to clear system between tests
If we simply call State.release for :system and :user everything dies :D
| -rw-r--r-- | test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -31,7 +31,8 @@ class TC_State < Test::Unit::TestCase end def teardown - State.get_all.clone.each{ |x| x.becomes_defunct } + State.release(:user) + State.release(:system) end def test_ignored_event |
