mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20887 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -85,7 +85,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
||||
assert_include 'Authenticator app', response.body.split("\n").second
|
||||
assert_include 'disabled', response.body.split("\n").third
|
||||
|
||||
assert_equal 'text/csv', @response.media_type
|
||||
assert_equal 'text/csv; header=present', @response.media_type
|
||||
end
|
||||
end
|
||||
|
||||
@@ -103,7 +103,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_include 'float field;date field', response.body
|
||||
assert_include '2,10;10/01/2020', response.body
|
||||
assert_equal 'text/csv', @response.media_type
|
||||
assert_equal 'text/csv; header=present', @response.media_type
|
||||
end
|
||||
end
|
||||
|
||||
@@ -115,7 +115,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
||||
assert_equal User.logged.status(3).count, response.body.chomp.split("\n").size - 1
|
||||
assert_include 'locked', response.body
|
||||
assert_not_include 'active', response.body
|
||||
assert_equal 'text/csv', @response.media_type
|
||||
assert_equal 'text/csv; header=present', @response.media_type
|
||||
end
|
||||
end
|
||||
|
||||
@@ -125,7 +125,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
||||
|
||||
assert_equal User.logged.like('John').count, response.body.chomp.split("\n").size - 1
|
||||
assert_include 'John', response.body
|
||||
assert_equal 'text/csv', @response.media_type
|
||||
assert_equal 'text/csv; header=present', @response.media_type
|
||||
end
|
||||
|
||||
def test_index_csv_with_group_filter
|
||||
@@ -133,7 +133,7 @@ class UsersControllerTest < Redmine::ControllerTest
|
||||
assert_response :success
|
||||
|
||||
assert_equal Group.find(10).users.count, response.body.chomp.split("\n").size - 1
|
||||
assert_equal 'text/csv', @response.media_type
|
||||
assert_equal 'text/csv; header=present', @response.media_type
|
||||
end
|
||||
|
||||
def test_show
|
||||
|
||||
Reference in New Issue
Block a user