@@ -50,9 +50,9 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
50 | 50 | assert_template 'show' |
|
51 | 51 | assert_not_nil assigns(:entries) |
|
52 | 52 | assert_equal 3, assigns(:entries).size |
|
53 | assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'} | |
|
53 | assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'} | |
|
54 | 54 | assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'} |
|
55 | assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} | |
|
55 | assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} | |
|
56 | 56 | end |
|
57 | 57 | |
|
58 | 58 | def test_show_directory |
@@ -86,10 +86,10 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
86 | 86 | get :entry, :id => 3, :path => ['sources', 'watchers_controller.rb'] |
|
87 | 87 | assert_response :success |
|
88 | 88 | assert_template 'entry' |
|
89 |
# Line 1 |
|
|
89 | # Line 10 | |
|
90 | 90 | assert_tag :tag => 'th', |
|
91 |
:content => |
|
|
92 |
:attributes => { :class => |
|
|
91 | :content => '10', | |
|
92 | :attributes => { :class => 'line-num' }, | |
|
93 | 93 | :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ } |
|
94 | 94 | end |
|
95 | 95 | |
@@ -115,7 +115,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
115 | 115 | assert_template 'diff' |
|
116 | 116 | # Line 22 removed |
|
117 | 117 | assert_tag :tag => 'th', |
|
118 |
:content => |
|
|
118 | :content => '22', | |
|
119 | 119 | :sibling => { :tag => 'td', |
|
120 | 120 | :attributes => { :class => /diff_out/ }, |
|
121 | 121 | :content => /def remove/ } |
General Comments 0
You need to be logged in to leave comments.
Login now