Adapt test to new jQuery context menu

jQuery context menu introduced in 1b7ddb3cd7
This commit is contained in:
Felix Schäfer 2012-03-23 12:34:53 +01:00
parent 7b3280e5ad
commit dafe09ee32
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class VersionsControllerTest < ActionController::TestCase
# Completed version doesn't appear
assert !assigns(:versions).include?(Version.find(1))
# Context menu on issues
assert_select "script", :text => Regexp.new(Regexp.escape("new ContextMenu('/issues/context_menu')"))
assert_select "script", :text => Regexp.new(Regexp.escape("jQuery(document).ContextMenu('/issues/context_menu')"))
end
def test_index_with_completed_versions