Exclude:
- 'app/models/setting.rb'
- 'lib/redmine/default_data/loader.rb'
- - 'test/functional/issues_controller_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
def test_index_csv_with_description
Issue.generate!(:description => 'test_index_csv_with_description')
-
with_settings :default_language => 'en' do
get :index, :params => {
:format => 'csv',
- :c => [:tracker,
- :description]
+ :c => [:tracker, :description]
}
assert_response :success
end
-
assert_equal 'text/csv', response.content_type
headers = response.body.chomp.split("\n").first.split(',')
assert_include 'Description', headers