@@ -37,12 +37,12 class VersionsControllerTest < ActionController::TestCase | |||||
37 | assert !assigns(:versions).include?(Version.find(1)) |
|
37 | assert !assigns(:versions).include?(Version.find(1)) | |
38 | # Context menu on issues |
|
38 | # Context menu on issues | |
39 | assert_select "script", :text => Regexp.new(Regexp.escape("contextMenuInit('/issues/context_menu')")) |
|
39 | assert_select "script", :text => Regexp.new(Regexp.escape("contextMenuInit('/issues/context_menu')")) | |
40 | # Links to versions anchors |
|
40 | assert_select "div#sidebar" do | |
41 | assert_tag 'a', :attributes => {:href => '#2.0'}, |
|
41 | # Links to versions anchors | |
42 | :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}} |
|
42 | assert_select 'a[href=?]', '#2.0' | |
43 | # Links to completed versions in the sidebar |
|
43 | # Links to completed versions in the sidebar | |
44 |
assert_t |
|
44 | assert_select 'a[href=?]', '/versions/1' | |
45 | :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}} |
|
45 | end | |
46 | end |
|
46 | end | |
47 |
|
47 | |||
48 | def test_index_with_completed_versions |
|
48 | def test_index_with_completed_versions |
General Comments 0
You need to be logged in to leave comments.
Login now