Skip to content

Commit

Permalink
Load Rails test helper before active_record_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Nov 11, 2024
1 parent bd328be commit efddb7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ def testing_mongoid?
defined?(::Mongoid)
end

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each do |f|
require f
end

if testing_rails?
require "integration/rails/spec_helper"
end
Expand All @@ -123,6 +118,11 @@ def testing_mongoid?
require "integration/mongoid/star_trek/schema"
end

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each do |f|
require f
end

def star_trek_query(string, variables={}, context: {})
StarTrek::Schema.execute(string, variables: variables, context: context)
end
Expand Down

0 comments on commit efddb7b

Please sign in to comment.