debian-mirror-gitlab/elasticsearch-rails/spec/lograge_spec.rb

18 lines
460 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
require 'spec_helper'
require 'action_pack'
require 'lograge'
require 'elasticsearch/rails/lograge'
describe 'ActiveSupport::Instrumentation integration' do
before do
Elasticsearch::Rails::Lograge::Railtie.run_initializers
end
it 'customizes the Lograge configuration' do
expect(Elasticsearch::Rails::Lograge::Railtie.initializers
.select { |i| i.name == 'elasticsearch.lograge' }
.first).not_to be_nil
end
end