Sha256: 614fef8bc2534c4bcda493517c2be58bfd87a5bd6a14f96db5abb7d422df635e
Contents?: true
Size: 867 Bytes
Versions: 1
Compression:
Stored size: 867 Bytes
Contents
require 'appsignal/cli' describe Appsignal::CLI::Diagnose do let(:out_stream) { StringIO.new } let(:config) { project_fixture_config } let(:cli) { described_class } around do |example| capture_stdout(out_stream) { example.run } end describe ".run" do before do Appsignal.config = config stub_api_request config, 'auth' end it "should output diagnostic information" do cli.run output = out_stream.string expect(output).to include('Gem version') expect(output).to include('Agent version') expect(output).to include('Environment') expect(output).to include('Config') expect(output).to include('Checking API key') expect(output).to include('Checking if required paths are writable') expect(output).to include('Showing last lines of extension install log') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appsignal-1.4.0.beta.1 | spec/lib/appsignal/cli/diagnose_spec.rb |