```ruby
# encoding: UTF-8

require 'bundler'

Bundler.setup
Bundler.require

require 'minitest/pride'
require 'minitest/autorun'
require 'minitest/spec'
require 'rack/test'

class MiniTest::Spec
  include Rack::Test::Methods
end
```

Add fakeredis if Redis is enabled, force RACK_ENV=test, load the environment (initializers and lib)
user
```ruby
# encoding: UTF-8

require 'bundler'

Bundler.setup
Bundler.require

ENV["RACK_ENV"] = "test"

require 'minitest/pride'
require 'minitest/autorun'
require 'minitest/spec'
require 'rack/test'
<% if @redis %>
require 'fakeredis'
REDIS = Redis.new
<% end %>

require "find"
%w{./config/initializers ./lib}.each do |load_path|
  Find.find(load_path) { |f| require f if f.match(/\.rb$/) }
end

class MiniTest::Spec
  include Rack::Test::Methods
end
```
assistant