ENV['APP_ENV'] = 'test' require './app' Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :active_record with.library :active_model end end RSpec.configure do |config| config.include Rack::Test::Methods config.include Shoulda::Matchers::ActiveModel, type: :model config.include Shoulda::Matchers::ActiveRecord, type: :model end