[yast-commit] <rest-service> master : testsuite update
ref: refs/heads/master commit 19991377b2cff27da7ee4ce6ca86d12b24ac7a58 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
participants (1)
-
Ladislav Slezak