```ruby
# spec_helper.rb

ENV['RACK_ENV'] = 'test'

require 'bundler'
Bundler.require :default, :test

require 'minitest/autorun'
require 'minitest/spec'

# Load the app
require_relative '../app'

# Create a custom class inheriting from MiniTest::Spec for your unit tests
class UnitTest < MiniTest::Spec
  # Any test that ends with 'Unit|Spec|Model' is a `UnitTest`
  register_spec_type(/(Unit|Spec|Model)$/, self)

  # Any test that is a class rather than a string is also a `UnitTest`
  register_spec_type(self) do |desc|
    true if desc.is_a?(Class)
  end
end
```

Change Mongoid logger level in tests
user
```ruby
# spec_helper.rb

ENV['RACK_ENV'] = 'test'

require 'bundler'
Bundler.require :default, :test

require 'minitest/autorun'
require 'minitest/spec'

# Load the app
require_relative '../app'
Mongo::Logger.logger.level = ::Logger::FATAL

# Create a custom class inheriting from MiniTest::Spec for your unit tests
class UnitTest < MiniTest::Spec
  # Any test that ends with 'Unit|Spec|Model' is a `UnitTest`
  register_spec_type(/(Unit|Spec|Model)$/, self)

  # Any test that is a class rather than a string is also a `UnitTest`
  register_spec_type(self) do |desc|
    true if desc.is_a?(Class)
  end
end
```
assistant