"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functional/timelog_report_test.rb" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

timelog_report_test.rb  (redmine-4.1.0):timelog_report_test.rb  (redmine-4.1.1)
skipping to change at line 262 skipping to change at line 262
} }
assert_response :success assert_response :success
assert_equal 'text/csv', @response.media_type assert_equal 'text/csv', @response.media_type
lines = @response.body.chomp.split("\n") lines = @response.body.chomp.split("\n")
# Headers # Headers
assert_equal 'Project,User,Overtime,2007-3,2007-4,Total time', lines.first assert_equal 'Project,User,Overtime,2007-3,2007-4,Total time', lines.first
# Total row # Total row
assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last
end end
def test_report_csv_should_fill_issue_criteria_with_tracker_id_and_subject
get :report, :params => {
:project_id => 1,
:columns => 'month',
:from => "2007-01-01",
:to => "2007-06-30",
:criteria => ["issue"],
:format => "csv"
}
assert_response :success
lines = @response.body.chomp.split("\n")
assert lines.detect {|line| line.include?('Bug #1: Cannot print recipes')}
end
def test_csv_big_5 def test_csv_big_5
str_big5 = (+"\xa4@\xa4\xeb").force_encoding('Big5') str_big5 = (+"\xa4@\xa4\xeb").force_encoding('Big5')
user = User.find_by_id(3) user = User.find_by_id(3)
user.firstname = "一月" user.firstname = "一月"
user.lastname = "test-lastname" user.lastname = "test-lastname"
assert user.save assert user.save
comments = "test_csv_big_5" comments = "test_csv_big_5"
te1 = TimeEntry.create(:spent_on => '2011-11-11', te1 = TimeEntry.create(:spent_on => '2011-11-11',
:hours => 7.3, :hours => 7.3,
:project => Project.find(1), :project => Project.find(1),
 End of changes. 1 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)