"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functional/timelog_controller_test.rb" between
redmine-4.0.5.tar.gz and redmine-4.0.6.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_controller_test.rb  (redmine-4.0.5):timelog_controller_test.rb  (redmine-4.0.6)
skipping to change at line 1239 skipping to change at line 1239
assert_select '#csv-export-options' do assert_select '#csv-export-options' do
assert_select 'form[action=?][method=get]', '/time_entries.csv' assert_select 'form[action=?][method=get]', '/time_entries.csv'
end end
end end
def test_index_csv_all_projects def test_index_csv_all_projects
with_settings :date_format => '%m/%d/%Y' do with_settings :date_format => '%m/%d/%Y' do
get :index, :params => {:format => 'csv'} get :index, :params => {:format => 'csv'}
assert_response :success assert_response :success
assert_equal 'text/csv', response.content_type assert_equal 'text/csv', response.media_type
end end
end end
def test_index_csv def test_index_csv
with_settings :date_format => '%m/%d/%Y' do with_settings :date_format => '%m/%d/%Y' do
get :index, :params => {:project_id => 1, :format => 'csv'} get :index, :params => {:project_id => 1, :format => 'csv'}
assert_response :success assert_response :success
assert_equal 'text/csv', response.content_type assert_equal 'text/csv', response.media_type
end end
end end
def test_index_csv_should_fill_issue_column_with_tracker_id_and_subject def test_index_csv_should_fill_issue_column_with_tracker_id_and_subject
issue = Issue.find(1) issue = Issue.find(1)
entry = TimeEntry.generate!(:issue => issue, :comments => "Issue column cont ent test") entry = TimeEntry.generate!(:issue => issue, :comments => "Issue column cont ent test")
get :index, :params => {:format => 'csv'} get :index, :params => {:format => 'csv'}
line = response.body.split("\n").detect {|l| l.include?(entry.comments)} line = response.body.split("\n").detect {|l| l.include?(entry.comments)}
assert_not_nil line assert_not_nil line
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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