require 'active_record'
require 'affairs_of_state'
require 'pry'

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


## Create an AR model to test with

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

require 'active_support'
require 'active_record'
require 'affairs_of_state'
require 'pry'

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


## Create an AR model to test with

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

Fix tests by adding active_support in
Fix tests by adding active_support in
