rating/spec/rails_helper.rb

12 lines
291 B
Ruby

# frozen_string_literal: true
ENV['RAILS_ENV'] ||= 'test'
require 'active_record/railtie'
require 'pry-byebug'
require 'rating'
ActiveRecord::Base.establish_connection adapter: :sqlite3, database: ':memory:'
Dir[File.expand_path('support/**/*.rb', __dir__)].each { |file| require file }