Feature #28471 » 0002-Unescape-href-values-before-asserting.patch
| test/functional/issues_controller_test.rb | ||
|---|---|---|
|
assert_select 'div#issue_tree span.issues-stat' do
|
||
|
assert_select 'span.badge', text: '4'
|
||
|
assert_select 'span.open a[href=?]', "/issues?parent_id=~1&set_filter=true&status_id=o", text: '3 open'
|
||
|
assert_select 'span.closed a[href=?]', "/issues?parent_id=~1&set_filter=true&status_id=c", text: '1 closed'
|
||
|
assert_select 'span.open a', text: '3 open'
|
||
|
assert_equal CGI.unescape(css_select('span.open a').first.attr('href')),
|
||
|
"/issues?parent_id=~1&set_filter=true&status_id=o"
|
||
|
assert_select 'span.closed a', text: '1 closed'
|
||
|
assert_equal CGI.unescape(css_select('span.closed a').first.attr('href')),
|
||
|
"/issues?parent_id=~1&set_filter=true&status_id=c"
|
||
|
end
|
||
|
end
|
||
| ... | ... | |
|
assert_response :success
|
||
|
assert_select 'div#issue_tree span.issues-stat' do
|
||
|
assert_select 'span.open a[href=?]', "/issues?parent_id=~1&set_filter=true&status_id=o", text: '1 open'
|
||
|
assert_select 'span.open a', text: '1 open'
|
||
|
assert_equal CGI.unescape(css_select('span.open a').first.attr('href')),
|
||
|
"/issues?parent_id=~1&set_filter=true&status_id=o"
|
||
|
assert_select 'span.closed', text: '0 closed'
|
||
|
assert_select 'span.closed a', 0
|
||
|
end
|
||
- « Previous
- 1
- …
- 8
- 9
- 10
- Next »