Project

General

Profile

Defect #41853 » 0002-Fix-functional-tests-broken-by-r23328.patch

Katsuya HIDAKA, 2024-11-29 19:26

View differences:

test/functional/issues_controller_test.rb
get(:show, :params => {:id => 1})
end
assert_select 'div#watchers ul' do
# User(id=2)
assert_select 'li.user-2' do
assert_select 'img.gravatar[title=?]', 'John Smith'
assert_select 'a[href="/users/2"]'
assert_select 'a[class*=delete]'
end
# Group(id=10)
assert_select "li.user-10" do
assert_select 'img.gravatar[title=?]', 'A Team'
assert_select 'img.gravatar[title=?]', 'A Team', false
assert_select 'a[href="/groups/10"]'
assert_select 'a[class*=delete]'
end
test/functional/messages_controller_test.rb
end
assert_select 'div#watchers ul' do
# User(id=2)
assert_select 'li.user-2' do
assert_select 'img.gravatar[title=?]', 'John Smith', is_display_gravatar
assert_select 'a[href="/users/2"]'
assert_select 'a[class*=delete]'
end
# Group(id=10)
assert_select "li.user-10" do
assert_select 'img.gravatar[title=?]', 'A Team', is_display_gravatar
assert_select 'a[href="/users/10"]', false
assert_select 'img.gravatar[title=?]', 'A Team', false
assert_select 'a[href="/groups/10"]'
assert_select 'a[class*=delete]'
end
end
test/functional/wiki_controller_test.rb
end
assert_select 'div#watchers ul' do
# User(id=2)
assert_select 'li.user-2' do
assert_select 'img.gravatar[title=?]', 'John Smith', is_display_gravatar
assert_select 'a[href="/users/2"]'
assert_select 'a[class*=delete]'
end
assert_select 'li.user-10' do
assert_select 'img.gravatar[title=?]', 'A Team', is_display_gravatar
assert_select 'a[href="/users/10"]', false
# Group(id=10)
assert_select "li.user-10" do
assert_select 'img.gravatar[title=?]', 'A Team', false
assert_select 'a[href="/groups/10"]'
assert_select 'a[class*=delete]'
end
end
(8-8/8)