Sha256: 89f68567ca0593cb3c110e8fea86700738e34d5f29f01880ac31ac74c96807e6

Contents?: true

Size: 250 Bytes

Versions: 4

Compression:

Stored size: 250 Bytes

Contents

require "#{File.dirname(__FILE__)}/../spec_helper"

RSpec.describe "Logger", type: :request do
  it "logs exception" do
    setup_broken_client
    expect(Rails.logger).to receive(:error).with(/message/).at_least(:once)

    get "/metrics"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
influxdb-rails-1.0.3 spec/requests/logger_spec.rb
influxdb-rails-1.0.2 spec/requests/logger_spec.rb
influxdb-rails-1.0.1 spec/requests/logger_spec.rb
influxdb-rails-1.0.1.beta3 spec/requests/logger_spec.rb