Sha256: 78aac64aaeb581768100290216a52ba6e1b3bc0ccd2d0d328567155a67750c89

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

require 'active_support'
require 'active_model'
require 'rspec'

require 'coveralls'
Coveralls.wear!

require File.expand_path('../../lib/estella.rb', __FILE__)

RSpec.configure do |config|
  config.raise_errors_for_deprecations!

  config.before(:context, elasticsearch: true) do
    Elasticsearch::Model.client = Elasticsearch::Client.new
    Estella::Helpers.types.each { |type| type.__elasticsearch__.client = nil } # clear memoized clients
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
estella-0.3.0 spec/spec_helper.rb
estella-0.2.2 spec/spec_helper.rb