Sha256: 1b2176345fdd4158b2e32dc782e15bf8530a46bfd1d5bfcb817dc193c9f27529

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

Bundler.require :default, :test

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'find_or_create_on_scopes'

ActiveRecord::Base.establish_connection(
  adapter: 'sqlite3',
  database: 'test.sqlite'
)

class Option < ActiveRecord::Base
  attr_accessor :field
end

RSpec.configure do |config|
  config.before(:each) do
    Option.connection.execute "DROP TABLE IF EXISTS options"
    Option.connection.execute "CREATE TABLE options (id INTEGER PRIMARY KEY ASC, name VARCHAR(127) NOT NULL, value VARCHAR(255))"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
find_or_create_on_scopes-1.0.0 spec/spec_helper.rb