mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -561,7 +561,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
Setting.date_format = '%m/%d/%Y'
|
||||
get :index, :format => 'csv'
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
assert_equal 'text/csv; header=present', @response.content_type
|
||||
assert @response.body.include?("Date,User,Activity,Project,Issue,Tracker,Subject,Hours,Comment,Overtime\n")
|
||||
assert @response.body.include?("\n04/21/2007,redMine Admin,Design,eCookbook,3,Bug,Error 281 when updating a recipe,1.0,\"\",\"\"\n")
|
||||
end
|
||||
@@ -570,7 +570,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
Setting.date_format = '%m/%d/%Y'
|
||||
get :index, :project_id => 1, :format => 'csv'
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
assert_equal 'text/csv; header=present', @response.content_type
|
||||
assert @response.body.include?("Date,User,Activity,Project,Issue,Tracker,Subject,Hours,Comment,Overtime\n")
|
||||
assert @response.body.include?("\n04/21/2007,redMine Admin,Design,eCookbook,3,Bug,Error 281 when updating a recipe,1.0,\"\",\"\"\n")
|
||||
end
|
||||
@@ -616,7 +616,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
get :index, :project_id => 1, :format => 'csv',
|
||||
:from => '2011-11-10', :to => '2011-11-10'
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
assert_equal 'text/csv; header=present', @response.content_type
|
||||
ar = @response.body.chomp.split("\n")
|
||||
s1 = "\xa4\xe9\xb4\xc1"
|
||||
if str_utf8.respond_to?(:force_encoding)
|
||||
@@ -653,7 +653,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
get :index, :project_id => 1, :format => 'csv',
|
||||
:from => '2011-11-10', :to => '2011-11-10'
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
assert_equal 'text/csv; header=present', @response.content_type
|
||||
ar = @response.body.chomp.split("\n")
|
||||
s1 = "\xa4\xe9\xb4\xc1"
|
||||
if str_utf8.respond_to?(:force_encoding)
|
||||
@@ -690,7 +690,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
get :index, :project_id => 1, :format => 'csv',
|
||||
:from => '2011-11-10', :to => '2011-11-10'
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
assert_equal 'text/csv; header=present', @response.content_type
|
||||
|
||||
ar = @response.body.chomp.split("\n")
|
||||
s2 = ar[1].split(",")[7]
|
||||
@@ -724,7 +724,7 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
get :index, :project_id => 1, :format => 'csv',
|
||||
:from => '2011-11-10', :to => '2011-11-10'
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
assert_equal 'text/csv; header=present', @response.content_type
|
||||
|
||||
ar = @response.body.chomp.split("\n")
|
||||
s2 = ar[1].split(";")[7]
|
||||
|
||||
Reference in New Issue
Block a user