mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
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:
2
Gemfile
2
Gemfile
@@ -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]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user