From 4c8544b5cdee78ef425612c1170099103ae32730 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 25 Feb 2021 12:40:50 -0600 Subject: [PATCH] Rubocop spec/support/date_time.rb --- .rubocop.yml | 2 -- spec/rails_helper.rb | 1 - spec/support/date_time.rb | 6 +++--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 8df543a8..0181a491 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -666,7 +666,6 @@ AllCops: - 'spec/cve/cve_2014_2538_spec.rb' - 'spec/cve/cve_2015_3225_spec.rb' - 'spec/support/contexts.rb' - - 'spec/support/date_time.rb' - 'spec/support/factory_bot.rb' - 'spec/support/mock_helpers.rb' - 'spec/support/contexts/shared_rd_donation_value_context.rb' @@ -675,7 +674,6 @@ AllCops: - 'spec/support/construct.rb' - 'spec/support/payments_for_a_payout.rb' - 'spec/support/expect.rb' - - 'spec/support/init_dotenv.rb' - 'spec/support/test_upload_service.rb' - 'spec/support/time_helpers.rb' - 'spec/requests/nonprofits/direct_debit_details_spec.rb' diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index cb2d2756..3a5cb9c5 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -14,7 +14,6 @@ require 'rspec/rails' # Add additional requires below this line. Rails is not loaded until this point! require 'devise' require 'support/factory_bot' -require 'support/date_time' require 'timecop' require 'support/contexts' include Expect diff --git a/spec/support/date_time.rb b/spec/support/date_time.rb index f60741bd..14747142 100644 --- a/spec/support/date_time.rb +++ b/spec/support/date_time.rb @@ -3,7 +3,7 @@ # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE class DateTime - def nsec - (sec_fraction * 1_000_000_000).to_i - end + def nsec + (sec_fraction * 1_000_000_000).to_i + end end