assert Issue.find(4).watched_by?(User.find_by_login('jsmith'))
end
+ def test_bulk_update_issues
+ log_user('jsmith', 'jsmith')
+ visit '/issues'
+ issue1 = Issue.find(1)
+ issue4 = Issue.find(4)
+ assert_equal 1, issue1.reload.status.id
+ assert_equal 1, issue4.reload.status.id
+ assert page.has_css?('tr#issue-1')
+ assert page.has_css?('tr#issue-4')
+ find('tr#issue-1 input[type=checkbox]').click
+ find('tr#issue-4 input[type=checkbox]').click
+ find('tr#issue-1 td.updated_on').right_click
+ within('#context-menu') do
+ click_link 'Status'
+ click_link 'Closed'
+ end
+ assert page.has_css?('#flash_notice')
+ assert_equal 5, issue1.reload.status.id
+ assert_equal 5, issue4.reload.status.id
+ end
+
def test_issue_list_with_default_totalable_columns
log_user('admin', 'admin')
with_settings :issue_list_default_totals => ['estimated_hours'] do