ref: refs/heads/backgroud_patches_bnc550934 commit cf8abb9c2f7d0b2a1ecf9c4e26e817cb00a67bef Author: Ladislav Slezak <lslezak@novell.com> Date: Fri Dec 18 10:04:23 2009 +0100 testsuite update --- webservice/test/unit/background_manager_test.rb | 4 ++++ webservice/test/unit/background_status_test.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/webservice/test/unit/background_manager_test.rb b/webservice/test/unit/background_manager_test.rb index 81f0b39..61a88cf 100644 --- a/webservice/test/unit/background_manager_test.rb +++ b/webservice/test/unit/background_manager_test.rb @@ -20,10 +20,14 @@ class BackgroundManagerTest < ActiveSupport::TestCase @bm.update_progress(:dummy) assert_equal nil, @bm.get_progress(:dummy) + changed = false @bm.update_progress(:dummy) do |s| + # this block must NOT be executed s.progress = 10 + changed = true end assert_equal nil, @bm.get_progress(:dummy) + assert !changed # register a process diff --git a/webservice/test/unit/background_status_test.rb b/webservice/test/unit/background_status_test.rb index 2131fa7..c63b93d 100644 --- a/webservice/test/unit/background_status_test.rb +++ b/webservice/test/unit/background_status_test.rb @@ -38,7 +38,7 @@ class BackgroundStatusTest < ActiveSupport::TestCase end def test_observing - ot = ObserverTest.new(@bs, changed_flag) + ot = ObserverTest.new(@bs) s = 'dummy status' p = 10 sp = 5 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org