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