Sha256: b5fc5f79842401225590d95448609c7c68785f273e584e3574238a0c2d6e9c8d

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

require "italian_job"

Bundler.setup
require "rails/all"
Bundler.require(:default)

require "rspec/rails"

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

ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
load "schema.rb"

I18n.load_path << File.dirname(__FILE__) + "/support/locale.yml"

RSpec.configure do |config|
    config.before do
        I18n.locale = :en

        ActiveRecord::Base.descendants.each do |model|
            model.delete_all
            Object.class_eval { remove_const model.name if const_defined?(model.name) }
        end

        load File.dirname(__FILE__) + "/support/user.rb"
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
italian_job-0.0.2 spec/spec_helper.rb