Commit 179afb9d68d718b34fb7feb5cf90b668c8af9635

Authored by Andrew Kane
1 parent 90940105

Moved helper [skip ci]

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
test/support/helpers.rb
... ... @@ -77,6 +77,10 @@ class Minitest::Test
77 77 defined?(ActiveRecord)
78 78 end
79 79  
  80 + def mongoid?
  81 + defined?(Mongoid)
  82 + end
  83 +
80 84 def default_model
81 85 Product
82 86 end
... ...
test/test_helper.rb
... ... @@ -46,10 +46,6 @@ else
46 46 require_relative "support/activerecord"
47 47 end
48 48  
49   -def mongoid?
50   - defined?(Mongoid)
51   -end
52   -
53 49 # models
54 50 Dir["#{__dir__}/models/*"].each do |file|
55 51 require file
... ...