Sha256: 809634b6d02d32886a0cd7e8b6cf0aa789f83758638f38c509cc755ca0bd1af0

Contents?: true

Size: 773 Bytes

Versions: 55

Compression:

Stored size: 773 Bytes

Contents

require 'spec_helper'
require 'appsignal/cli'

describe Appsignal::CLI::Diagnose do
  let(:out_stream) { StringIO.new }
  let(:cli) { Appsignal::CLI::Diagnose }
  before do
    @original_stdout = $stdout
    $stdout = out_stream
  end
  after do
    $stdout = @original_stdout
  end

  describe ".run" do
    it "should output diagnostic information" do
      cli.run

      out_stream.string.should include('Gem version')
      out_stream.string.should include('Agent version')
      out_stream.string.should include('Config')
      out_stream.string.should include('Checking API key')
      out_stream.string.should include('Checking if required paths are writable')
      out_stream.string.should include('Showing last lines of extension install log')
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
appsignal-1.4.0.alpha.2 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.4.0.alpha.1 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.3.2 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.3.1 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.3.0 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.3.0.beta.3 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.3.0.beta.2 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.3.0.beta.1 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.5 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.4 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.4.beta.4 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.4.beta.3 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.4.beta.2 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.4.beta.1 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.3 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.3.beta.3 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.3.beta.2 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.3.beta.1 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.2 spec/lib/appsignal/cli/diagnose_spec.rb
appsignal-1.2.1 spec/lib/appsignal/cli/diagnose_spec.rb