From 179afb9d68d718b34fb7feb5cf90b668c8af9635 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 20 Feb 2022 23:17:45 -0800 Subject: [PATCH] Moved helper [skip ci] --- test/support/helpers.rb | 4 ++++ test/test_helper.rb | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/support/helpers.rb b/test/support/helpers.rb index 1aa3201..165732d 100644 --- a/test/support/helpers.rb +++ b/test/support/helpers.rb @@ -77,6 +77,10 @@ class Minitest::Test defined?(ActiveRecord) end + def mongoid? + defined?(Mongoid) + end + def default_model Product end diff --git a/test/test_helper.rb b/test/test_helper.rb index 12dbaef..bcfa416 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -46,10 +46,6 @@ else require_relative "support/activerecord" end -def mongoid? - defined?(Mongoid) -end - # models Dir["#{__dir__}/models/*"].each do |file| require file -- libgit2 0.21.0