Sha256: 809cc2b27412a5937facc7ba35ca4cb049a385f7ef0c9900511ba6863757b9eb

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require 'logger'
require "rubygems"
require "bundler"

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

require 'pry'
require 'active_record'
require File.expand_path('../../lib/kue', __FILE__)


active_record_configuration = YAML.load_file(File.expand_path('../config/database.yml', __FILE__))

ActiveRecord::Base.configurations = active_record_configuration
ActiveRecord::Base.establish_connection(active_record_configuration)

ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), "debug.log"))
ActiveRecord::Base.default_timezone = :utc

ActiveRecord::Base.silence do
  ActiveRecord::Migration.verbose = false
  load(File.expand_path('../../lib/generators/kue/install/templates/migration.rb', __FILE__))
end

#Run the migration
KueSettingsTableCreateMigration.new.up

RSpec.configure do |configuration|
  configuration.after(:each) do
    KueStore.destroy_all
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kue-0.1.0 spec/spec_helper.rb
kue-0.0.8 spec/spec_helper.rb
kue-0.0.7 spec/spec_helper.rb
kue-0.0.6 spec/spec_helper.rb
kue-0.0.5 spec/spec_helper.rb