Sha256: 0c84d8428c55cc708b338fa03ae4025145b7f3dc6961ec65d77206ba3b9e2178

Contents?: true

Size: 755 Bytes

Versions: 15

Compression:

Stored size: 755 Bytes

Contents

require "spec_helper"

describe "brightbox sql snapshots" do
  describe "show" do
    let(:output) { FauxIO.new { Brightbox.run(argv) } }
    let(:stdout) { output.stdout }
    let(:stderr) { output.stderr }

    before do
      config = config_from_contents(USER_APP_CONFIG_CONTENTS)

      # Setup in the VCR recordings
      cache_access_token(config, "f83da712e6299cda953513ec07f7a754f747d727")
    end

    context "when resource exists", vcr: true do
      let(:argv) { %w[sql snapshots show dbi-12345] }

      it "does not output to stderr" do
        expect(stderr).to eql("")
      end

      it "outputs table details to stdout" do
        expect(stdout).to_not be_empty
        expect(stdout).to match(/dbi-12345/)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0.alpha spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.8.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.7.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.6.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.5.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.5.0.rc1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.4.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.3.2 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.3.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.3.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.2.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.2.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.1.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.0.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-4.0.0.rc2 spec/commands/sql/snapshots/show_spec.rb