diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-15 12:36:24 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-15 12:36:24 +0000 |
commit | f1e86cdc3adb4796c21e126337719344e785cb36 (patch) | |
tree | 3c99114a7c47df2d55f755363b0a7298380e47d6 /test/unit | |
parent | 378626d7cba3435f460123b89a56d31e6910c6a5 (diff) | |
download | redmine-f1e86cdc3adb4796c21e126337719344e785cb36.tar.gz redmine-f1e86cdc3adb4796c21e126337719344e785cb36.zip |
remove spaces inside {} of test/unit/time_entry_import_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20380 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/time_entry_import_test.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/unit/time_entry_import_test.rb b/test/unit/time_entry_import_test.rb index 26aa07b0c..da3e6d7be 100644 --- a/test/unit/time_entry_import_test.rb +++ b/test/unit/time_entry_import_test.rb @@ -47,7 +47,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase def test_maps_issue_id import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_nil first.issue_id assert_nil second.issue_id @@ -57,7 +57,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase def test_maps_date import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal Date.new(2020, 1, 1), first.spent_on assert_equal Date.new(2020, 1, 2), second.spent_on @@ -67,7 +67,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase def test_maps_hours import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal 1, first.hours assert_equal 2, second.hours @@ -77,7 +77,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase def test_maps_comments import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal 'Some Design', first.comments assert_equal 'Some Development', second.comments @@ -91,7 +91,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase import.save! # N.B. last row is not imported due to the usage of a disabled activity - first, second, third = new_records(TimeEntry, 3) { import.run } + first, second, third = new_records(TimeEntry, 3) {import.run} assert_equal 9, first.activity_id assert_equal 10, second.activity_id @@ -104,7 +104,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase def test_maps_activity_to_fixed_value import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal 10, first.activity_id assert_equal 10, second.activity_id @@ -118,7 +118,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase import = generate_import_with_mapping import.mapping['cf_10'] = '6' import.save! - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal '1', first.custom_field_value(overtime_cf) assert_equal '1', second.custom_field_value(overtime_cf) @@ -130,7 +130,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase Role.find_by_name('Manager').add_permission! :log_time_for_other_users import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal 2, first.user_id assert_equal 2, second.user_id @@ -144,7 +144,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase import = generate_import_with_mapping import.mapping['user'] = 'value:3' import.save! - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal 3, first.user_id assert_equal 3, second.user_id @@ -156,7 +156,7 @@ class TimeEntryImportTest < ActiveSupport::TestCase # User 2 doesn't have log_time_for_other_users permission User.current = User.find(2) import = generate_import_with_mapping - first, second, third, fourth = new_records(TimeEntry, 4) { import.run } + first, second, third, fourth = new_records(TimeEntry, 4) {import.run} assert_equal 2, first.user_id assert_equal 2, second.user_id |