Sha256: 6ecc62c6e54fe9bf815f826983508796fd77aa6b4dbbf9451d6047bca511435b

Contents?: true

Size: 761 Bytes

Versions: 7

Compression:

Stored size: 761 Bytes

Contents

require "spec_helper"

describe "brightbox database-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 be_empty
      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

7 entries across 7 versions & 1 rubygems

Version Path
brightbox-cli-2.4.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.3.4 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.3.3 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.3.2 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.3.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.3.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.2.0 spec/commands/sql/snapshots/show_spec.rb