From 7f110f72776f4fef85ed66291b9d18a0ac6d1a16 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 2 Jun 2019 23:23:01 +0000 Subject: [PATCH] Remove trailing whitespaces from test/test_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18220 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/test_helper.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index a5af479d3..521caeb3c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -254,14 +254,14 @@ end module Redmine class MockFile attr_reader :size, :original_filename, :content_type - + def initialize(options={}) @size = options[:size] || 32 @original_filename = options[:original_filename] || options[:filename] @content_type = options[:content_type] @content = options[:content] || 'x'*size end - + def read(*args) if @eof false @@ -308,12 +308,12 @@ module Redmine ids = css_select('tr.issue td.id').map(&:text).map(&:to_i) Issue.where(:id => ids).sort_by {|issue| ids.index(issue.id)} end - + # Return the columns that are displayed in the issue list def columns_in_issues_list css_select('table.issues thead th:not(.checkbox)').map(&:text).select(&:present?) end - + # Return the columns that are displayed in the list def columns_in_list css_select('table.list thead th:not(.checkbox)').map(&:text).select(&:present?) @@ -328,7 +328,7 @@ module Redmine def assert_query_filters(expected_filters) response.body =~ /initFilters\(\);\s*((addFilter\(.+\);\s*)*)/ filter_init = $1.to_s - + expected_filters.each do |field, operator, values| s = "addFilter(#{field.to_json}, #{operator.to_json}, #{Array(values).to_json});" assert_include s, filter_init @@ -437,7 +437,7 @@ module Redmine request = arg.keys.detect {|key| key.is_a?(String)} raise ArgumentError unless request options = arg.slice!(request) - + API_FORMATS.each do |format| format_request = request.sub /$/, ".#{format}" super options.merge(format_request => arg[request], :format => format)