Update tests for rails-dom-testing 2.3.0 whitespace collapsing (#42756).

Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23784 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-05-23 05:44:05 +00:00
parent 704d224b3e
commit bc12a74a5c
5 changed files with 8 additions and 8 deletions

View File

@@ -102,7 +102,7 @@ group :development do
end end
group :test do group :test do
gem "rails-dom-testing" gem "rails-dom-testing", '>= 2.3.0'
gem 'mocha', '>= 2.0.1' gem 'mocha', '>= 2.0.1'
gem 'simplecov', '~> 0.22.0', :require => false gem 'simplecov', '~> 0.22.0', :require => false
gem "ffi", platforms: [:mingw, :x64_mingw, :mswin] gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]

View File

@@ -42,7 +42,7 @@ class AttachmentsControllerTest < Redmine::ControllerTest
assert_response :success assert_response :success
assert_equal 'text/html', @response.media_type assert_equal 'text/html', @response.media_type
assert_select 'th.filename', :text => /issues_controller.rb\t\(révision 1484\)/ assert_select 'th.filename', :text => /issues_controller\.rb \(révision 1484\)/
assert_select 'td.line-code', :text => /Demande créée avec succès/ assert_select 'td.line-code', :text => /Demande créée avec succès/
end end
end end
@@ -61,7 +61,7 @@ class AttachmentsControllerTest < Redmine::ControllerTest
assert_response :success assert_response :success
assert_equal 'text/html', @response.media_type assert_equal 'text/html', @response.media_type
assert_select 'th.filename', :text => /issues_controller.rb\t\(r\?vision 1484\)/ assert_select 'th.filename', :text => /issues_controller\.rb \(r\?vision 1484\)/
assert_select 'td.line-code', :text => /Demande cr\?\?e avec succ\?s/ assert_select 'td.line-code', :text => /Demande cr\?\?e avec succ\?s/
end end
end end
@@ -81,7 +81,7 @@ class AttachmentsControllerTest < Redmine::ControllerTest
assert_response :success assert_response :success
assert_equal 'text/html', @response.media_type assert_equal 'text/html', @response.media_type
assert_select 'th.filename', :text => /issues_controller.rb\t\(révision 1484\)/ assert_select 'th.filename', :text => /issues_controller\.rb \(révision 1484\)/
assert_select 'td.line-code', :text => /Demande créée avec succès/ assert_select 'td.line-code', :text => /Demande créée avec succès/
end end
end end

View File

@@ -62,7 +62,7 @@ class Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base
assert_select "author[id=2][name=\"John Smith\"]" assert_select "author[id=2][name=\"John Smith\"]"
assert_select 'title', 'eCookbook first release !' assert_select 'title', 'eCookbook first release !'
assert_select 'summary', 'First version was released...' assert_select 'summary', 'First version was released...'
assert_select 'description', "eCookbook 1.0 has been released.\n\nVisit http://ecookbook.somenet.foo/" assert_select 'description', 'eCookbook 1.0 has been released. Visit http://ecookbook.somenet.foo/'
assert_select 'created_on', News.find(1).created_on.iso8601 assert_select 'created_on', News.find(1).created_on.iso8601
end end
end end