diff options
author | Go MAEDA <maeda@farend.jp> | 2019-06-02 23:23:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-06-02 23:23:01 +0000 |
commit | 7f110f72776f4fef85ed66291b9d18a0ac6d1a16 (patch) | |
tree | b279fcd6f73273955edc9be06b933eb44b688609 /test/test_helper.rb | |
parent | 3be6fea8e2a7805b9aae3f8950593363008705aa (diff) | |
download | redmine-7f110f72776f4fef85ed66291b9d18a0ac6d1a16.tar.gz redmine-7f110f72776f4fef85ed66291b9d18a0ac6d1a16.zip |
Remove trailing whitespaces from test/test_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18220 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 12 |
1 files 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) |