Sha256: f588153e6e426ce38a075f58c73b4629fbf4f90e187c0508154c8db28d5f8edb

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test'

require 'active_record/railtie'
require 'mysql2'
require 'pry-byebug'
require 'rating'

client = Mysql2::Client.new(host: :localhost, username: :root)

client.query 'DROP DATABASE IF EXISTS rating_test;'
client.query 'CREATE DATABASE IF NOT EXISTS rating_test;'

ActiveRecord::Base.establish_connection adapter: :mysql2, database: :rating_test, username: :root

Dir[File.expand_path('support/**/*.rb', __dir__)].each { |file| require file }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rating-0.11.0 spec/rails_helper.rb
rating-0.10.0 spec/rails_helper.rb
rating-0.9.0 spec/rails_helper.rb
rating-0.8.0 spec/rails_helper.rb
rating-0.7.0 spec/rails_helper.rb
rating-0.6.0 spec/rails_helper.rb
rating-0.5.0 spec/rails_helper.rb
rating-0.4.0 spec/rails_helper.rb