##// END OF EJS Templates
use assert_select instead of assert_tag in Bazaar annotate test (#14931)...
Toshi MARUYAMA -
r11911:eaf05a87b475
parent child
Show More
@@ -137,26 +137,15 class RepositoriesBazaarControllerTest < ActionController::TestCase
137 137 :path => repository_path_hash(['doc-mkdir.txt'])[:param]
138 138 assert_response :success
139 139 assert_template 'annotate'
140 assert_tag :tag => 'th', :content => '2',
141 :sibling => {
142 :tag => 'td',
143 :child => {
144 :tag => 'a',
145 :content => '3'
146 }
147 }
148 assert_tag :tag => 'th', :content => '2',
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/ }
140 assert_select "th.line-num", :text => '2' do
141 assert_select "+ td.revision" do
142 assert_select "a", :text => '3'
143 assert_select "+ td.author", :text => "jsmith@" do
144 assert_select "+ td",
145 :text => "Main purpose:"
146 end
147 end
148 end
160 149 end
161 150
162 151 def test_destroy_valid_repository
General Comments 0
You need to be logged in to leave comments. Login now