diff --git a/.rubocop.yml b/.rubocop.yml index 0181a491..332cb799 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -671,11 +671,9 @@ AllCops: - 'spec/support/contexts/shared_rd_donation_value_context.rb' - 'spec/support/contexts/shared_donation_charge_context.rb' - 'spec/support/contexts/general_shared_user_context.rb' - - 'spec/support/construct.rb' - 'spec/support/payments_for_a_payout.rb' - 'spec/support/expect.rb' - 'spec/support/test_upload_service.rb' - - 'spec/support/time_helpers.rb' - 'spec/requests/nonprofits/direct_debit_details_spec.rb' - 'spec/migration/delete_tag_join_spec.rb' - 'spec/migration/delete_custom_field_join_spec.rb' diff --git a/spec/support/construct.rb b/spec/support/construct.rb deleted file mode 100644 index e24b3e5a..00000000 --- a/spec/support/construct.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -# 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 Construct < Struct - def self.new(hash) - keys = hash.keys - vals = hash.values - super(*keys).new(*vals) - end - - def expand(hash) - Construct.new(to_h.merge(hash)) - end -end diff --git a/spec/support/date_time.rb b/spec/support/date_time.rb deleted file mode 100644 index 14747142..00000000 --- a/spec/support/date_time.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -# 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 -end diff --git a/spec/support/time_helpers.rb b/spec/support/time_helpers.rb deleted file mode 100644 index 2cd3ea89..00000000 --- a/spec/support/time_helpers.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'active_support/testing/time_helpers' -RSpec.configure do |config| - config.include ActiveSupport::Testing::TimeHelpers -end \ No newline at end of file