]> source.dussan.org Git - redmine.git/commitdiff
fix failure of test_remove_issue_watcher_from_sidebar at UI IssuesTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 May 2013 13:03:41 +0000 (13:03 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 May 2013 13:03:41 +0000 (13:03 +0000)
<pre>
  2) Failure:
test_remove_issue_watcher_from_sidebar(Redmine::UiTest::IssuesTest) [test/ui/issues_test.rb:186]:
"Watcher.count" didn't change by -1.
<3> expected but was
<4>.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11807 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index 00951ba33fcf6c6adeca51f63aa414673a860999..587230088586cdd9b987131f0b05f02b33734cfa 100644 (file)
@@ -185,8 +185,8 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
     assert page.first('#sidebar').has_content?(user.name)
     assert_difference 'Watcher.count', -1 do
       page.first('ul.watchers .user-3 a.delete').click
+      assert page.first('#sidebar').has_content?('Watchers (0)')
     end
-    assert page.first('#sidebar').has_content?('Watchers (0)')
     assert page.first('#sidebar').has_no_content?(user.name)
   end