Sha256: accb1f101a966794f2b2b046617ca6094699304908bd1b3ec2d058c9ee3e8341

Contents?: true

Size: 1008 Bytes

Versions: 4

Compression:

Stored size: 1008 Bytes

Contents

# -*- coding: utf-8 -*-
require 'rubygems'
require "bundler/setup"

ENV["RAILS_ENV"] ||= 'test'

require 'active_record'
require 'action_view'
require 'action_controller'
require 'state_machine'

require 'rspec'
require 'rspec/rails'
require 'shoulda'
require 'factory_girl'

# require 'nulldb_rspec'
# include NullDB::RSpec::NullifiedDatabase

ActiveRecord::Base.establish_connection(
  :adapter => 'sqlite3',
  :database => ":memory:"
   # :adapter => 'postgresql',
   # :database => "courier_test"

  )

#ActiveRecord::Base.logger = Logger.new(File.open('log/database.log', 'a'))

require 'lib/generators/templates/migration'
CreateCourierTables.migrate :up

ActiveRecord::Schema.define do
  create_table :users do |t|
    t.string :name
  end
end

require 'courier'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.use_transactional_examples = true
  # config.include GritterNotices::RSpecMatcher
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
courier-0.1.5 spec/spec_helper.rb
courier-0.1.4 spec/spec_helper.rb
courier-0.1.3 spec/spec_helper.rb
courier-0.1.2 spec/spec_helper.rb