@@ -137,26 +137,15 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
137 | :path => repository_path_hash(['doc-mkdir.txt'])[:param] |
|
137 | :path => repository_path_hash(['doc-mkdir.txt'])[:param] | |
138 | assert_response :success |
|
138 | assert_response :success | |
139 | assert_template 'annotate' |
|
139 | assert_template 'annotate' | |
140 | assert_tag :tag => 'th', :content => '2', |
|
140 | assert_select "th.line-num", :text => '2' do | |
141 | :sibling => { |
|
141 | assert_select "+ td.revision" do | |
142 | :tag => 'td', |
|
142 | assert_select "a", :text => '3' | |
143 | :child => { |
|
143 | assert_select "+ td.author", :text => "jsmith@" do | |
144 | :tag => 'a', |
|
144 | assert_select "+ td", | |
145 |
|
|
145 | :text => "Main purpose:" | |
146 | } |
|
146 | end | |
147 | } |
|
147 | end | |
148 | assert_tag :tag => 'th', :content => '2', |
|
148 | end | |
149 | :sibling => { :tag => 'td', :content => /jsmith/ } |
|
|||
150 | assert_tag :tag => 'th', :content => '2', |
|
|||
151 | :sibling => { |
|
|||
152 | :tag => 'td', |
|
|||
153 | :child => { |
|
|||
154 | :tag => 'a', |
|
|||
155 | :content => '3' |
|
|||
156 | } |
|
|||
157 | } |
|
|||
158 | assert_tag :tag => 'th', :content => '2', |
|
|||
159 | :sibling => { :tag => 'td', :content => /Main purpose/ } |
|
|||
160 | end |
|
149 | end | |
161 |
|
150 | |||
162 | def test_destroy_valid_repository |
|
151 | def test_destroy_valid_repository |
General Comments 0
You need to be logged in to leave comments.
Login now