Remove unused spec files

This commit is contained in:
Eric Schultz 2021-02-25 12:44:07 -06:00 committed by Eric Schultz
parent 4c8544b5cd
commit 7ce86e2c88
4 changed files with 0 additions and 30 deletions

View file

@ -671,11 +671,9 @@ AllCops:
- 'spec/support/contexts/shared_rd_donation_value_context.rb' - 'spec/support/contexts/shared_rd_donation_value_context.rb'
- 'spec/support/contexts/shared_donation_charge_context.rb' - 'spec/support/contexts/shared_donation_charge_context.rb'
- 'spec/support/contexts/general_shared_user_context.rb' - 'spec/support/contexts/general_shared_user_context.rb'
- 'spec/support/construct.rb'
- 'spec/support/payments_for_a_payout.rb' - 'spec/support/payments_for_a_payout.rb'
- 'spec/support/expect.rb' - 'spec/support/expect.rb'
- 'spec/support/test_upload_service.rb' - 'spec/support/test_upload_service.rb'
- 'spec/support/time_helpers.rb'
- 'spec/requests/nonprofits/direct_debit_details_spec.rb' - 'spec/requests/nonprofits/direct_debit_details_spec.rb'
- 'spec/migration/delete_tag_join_spec.rb' - 'spec/migration/delete_tag_join_spec.rb'
- 'spec/migration/delete_custom_field_join_spec.rb' - 'spec/migration/delete_custom_field_join_spec.rb'

View file

@ -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

View file

@ -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

View file

@ -1,4 +0,0 @@
require 'active_support/testing/time_helpers'
RSpec.configure do |config|
config.include ActiveSupport::Testing::TimeHelpers
end