fix failure of test_remove_issue_watcher_from_sidebar at UI IssuesTest

<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
This commit is contained in:
Toshi MARUYAMA 2013-05-09 13:03:41 +00:00
parent 2b022ac097
commit aaa37be223
1 changed files with 1 additions and 1 deletions

View 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
end
assert page.first('#sidebar').has_content?('Watchers (0)')
end
assert page.first('#sidebar').has_no_content?(user.name)
end