Sha256: 89c7b7b02640142d52d2fd0a3942587742dead390123a5c43c40e698d793a10e
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'awesome_print' require 'redis' require 'afterparty' # and any other gems you need require 'helpers' require 'genspec' RSpec.configure do |config| # some (optional) config here config.include Afterparty::QueueTestHelpers end database_yml = File.expand_path("../database.yml", __FILE__) active_record_config = YAML.load_file(database_yml) ActiveRecord::Base.configurations = active_record_config ActiveRecord::Base.establish_connection("sqlite3") load(File.dirname(__FILE__) + "/schema.rb") def clean_database! ActiveRecord::Base.connection.execute "DELETE FROM afterparty_jobs" end clean_database!
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
afterparty-0.1.1 | spec/spec_helper.rb |
afterparty-0.1.0 | spec/spec_helper.rb |