Sha256: 15fe733dac931852b8621f232674afe68cf9787bc2e26a6987302f0acd8aabd9

Contents?: true

Size: 690 Bytes

Versions: 12

Compression:

Stored size: 690 Bytes

Contents

require 'delayed_job_active_record'
rails_env = ENV['RAILS_ENV'] ||= 'test'
db_adapter = ENV['DB_ADAPTER'] ||= 'postgresql'
require File.expand_path('dummy/config/environment.rb', __dir__)

Rails.configuration.database_configuration[db_adapter][rails_env].tap do |c|
  ActiveRecord::Tasks::DatabaseTasks.create(c)
  ActiveRecord::Base.establish_connection(c)
  load File.expand_path('dummy/db/schema.rb', __dir__)
end

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.order = :random
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
journaled-2.5.0 spec/spec_helper.rb
journaled-2.4.0 spec/spec_helper.rb
journaled-2.3.1 spec/spec_helper.rb
journaled-2.3.0 spec/spec_helper.rb
journaled-2.2.0 spec/spec_helper.rb
journaled-2.1.1 spec/spec_helper.rb
journaled-2.1.0 spec/spec_helper.rb
journaled-2.0.3 spec/spec_helper.rb
journaled-2.0.2 spec/spec_helper.rb
journaled-2.0.1 spec/spec_helper.rb
journaled-2.0.0 spec/spec_helper.rb
journaled-2.0.0.rc1 spec/spec_helper.rb