##// END OF EJS Templates
Merged r4625 from trunk....
Toshi MARUYAMA -
r4508:8ebab00767fa
parent child
Show More
@@ -125,10 +125,29 class RepositoriesMercurialControllerTest < ActionController::TestCase
125 get :annotate, :id => 3, :path => ['sources', 'watchers_controller.rb']
125 get :annotate, :id => 3, :path => ['sources', 'watchers_controller.rb']
126 assert_response :success
126 assert_response :success
127 assert_template 'annotate'
127 assert_template 'annotate'
128 # Line 23, revision 4
128 # Line 23, revision 4:def6d2f1254a
129 assert_tag :tag => 'th', :content => /23/,
129 assert_tag :tag => 'th',
130 :sibling => { :tag => 'td', :child => { :tag => 'a', :content => /4/ } },
130 :content => '23',
131 :sibling => { :tag => 'td', :content => /jsmith/ },
131 :attributes => { :class => 'line-num' },
132 :sibling =>
133 {
134 :tag => 'td',
135 :attributes => { :class => 'revision' },
136 :child => { :tag => 'a', :content => '4' }
137 # :child => { :tag => 'a', :content => /4:def6d2f1/ }
138 }
139 assert_tag :tag => 'th',
140 :content => '23',
141 :attributes => { :class => 'line-num' },
142 :sibling =>
143 {
144 :tag => 'td' ,
145 :content => 'jsmith' ,
146 :attributes => { :class => 'author' },
147 }
148 assert_tag :tag => 'th',
149 :content => '23',
150 :attributes => { :class => 'line-num' },
132 :sibling => { :tag => 'td', :content => /watcher =/ }
151 :sibling => { :tag => 'td', :content => /watcher =/ }
133 end
152 end
134 else
153 else
General Comments 0
You need to be logged in to leave comments. Login now