Sha256: 41c4df567eb30b87ad8ed529fbfbffe8e8a817969fbdd0e0d034c9233c08f3a3

Contents?: true

Size: 915 Bytes

Versions: 4

Compression:

Stored size: 915 Bytes

Contents

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

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

require 'rails/all'

require 'state_machine'

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

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

  )

class Application < Rails::Application; end

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}

require 'config/routes'
require 'app/controllers/courier_settings_controller'
require 'app/helpers/courier_settings_helper'

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.2.4 spec/spec_helper.rb
courier-0.2.3 spec/spec_helper.rb
courier-0.2.1 spec/spec_helper.rb
courier-0.2.0 spec/spec_helper.rb