Sha256: 8a3f46a757babaf8f33a8be02c1cf2b5537d7dabdca198daac0a42601fd599c0

Contents?: true

Size: 927 Bytes

Versions: 5

Compression:

Stored size: 927 Bytes

Contents

if ENV['BUILDER'] == 'travis'
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
else
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
  end
end

require 'active_record'
require 'embedson'
require 'with_model'
require 'pry'

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.extend WithModel

  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

  connection = if ENV['BUILDER'] == 'travis'
                 "postgres://postgres@localhost/travis_ci_test"
               else
                 "postgres://embedson:embedson@localhost/embedson"
               end

  ActiveRecord::Base.establish_connection(connection)

  config.order = :random
  Kernel.srand config.seed
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
embedson-1.1.0 spec/spec_helper.rb
embedson-1.0.4 spec/spec_helper.rb
embedson-1.0.3 spec/spec_helper.rb
embedson-1.0.2 spec/spec_helper.rb
embedson-1.0.1 spec/spec_helper.rb