Sha256: 47f0dc5f14a6b2b0387a163d8e8d8d8025563971c846e595f2065062c3b5194b

Contents?: true

Size: 755 Bytes

Versions: 20

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

20 entries across 20 versions & 1 rubygems

Version Path
brightbox-cli-3.3.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-3.2.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-3.1.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-3.0.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-3.0.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.12.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.11.2 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.11.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.11.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.10.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.9.3 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.9.2 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.9.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.9.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.8.2 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.8.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.8.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.7.1 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.7.0 spec/commands/sql/snapshots/show_spec.rb
brightbox-cli-2.6.0 spec/commands/sql/snapshots/show_spec.rb