Sha256: c2517621e2e388eabe7aaa2accff2f492f6a110602796f5082bc1a8d9a9c875f
Contents?: true
Size: 851 Bytes
Versions: 2
Compression:
Stored size: 851 Bytes
Contents
require 'elasticsearch-documents' def reset_configuration Elasticsearch::Extensions::Documents.configuration = nil configure_documents end def configure_documents Elasticsearch::Extensions::Documents.configure do |config| config.index_name = 'test_index' config.settings = :fake_settings config.mappings = :fake_mappings config.client.url = 'http://example.com:9200' end end RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.order = 'random' config.before(:suite) do configure_documents end end class TestDocumentsDocument < Elasticsearch::Extensions::Documents::Document indexes_as_type :documents_test def as_hash { a: object.a, b: object.b, } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-documents-1.0.0 | spec/spec_helper.rb |
elasticsearch-documents-0.1.0 | spec/spec_helper.rb |