Sha256: 1dc8136bbedf83f4ab3832496bb8982488e4181ab0b7ea82598c592eaf6c38bb

Contents?: true

Size: 250 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
influxdb-rails-1.0.1.beta2 spec/requests/logger_spec.rb
influxdb-rails-1.0.1.beta1 spec/requests/logger_spec.rb