Sha256: ef6ed911276a1af051d4ecf7ef1967a6d038ffbd3510d559ce23247bdf6e795e

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

require 'active_record'
require 'active_support/all'
require 'affairs_of_state'
require 'pry'

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
end

## Create an AR model to test with
I18n.enforce_available_locales = false

ActiveRecord::Base.establish_connection(
  adapter: "sqlite3",
  database: "#{File.expand_path(File.join(File.dirname(__FILE__), '..'))}/spec/db/test.sqlite3"
)

ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'pies'")
ActiveRecord::Base.connection.create_table(:pies) do |t|
  t.string :status
  t.string :super_status
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
affairs_of_state-0.2.0 spec/spec_helper.rb