Sha256: f449dcf5635ac17ce5c059a7ebcc899561bbd7eb20b5a22cf3dbe3fbc82f1b51

Contents?: true

Size: 467 Bytes

Versions: 10

Compression:

Stored size: 467 Bytes

Contents

require "spec_helper"

describe Kitabu::Cli do
  context "while running export" do
    it "exits with status 1 when an invalid --only option is provided" do
      expect {
        capture(:stderr){ Kitabu::Cli.start(["export", "--only=invalid"]) }
      }.to exit_with_code(1)
    end

    it "exits with status 1 when no config file is found" do
      expect {
        capture(:stderr){ Kitabu::Cli.start(["export"]) }
      }.to exit_with_code(1)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kitabu-1.0.6 spec/kitabu/cli/export_spec.rb
kitabu-1.0.5 spec/kitabu/cli/export_spec.rb
kitabu-1.0.4 spec/kitabu/cli/export_spec.rb
kitabu-1.0.3 spec/kitabu/cli/export_spec.rb
kitabu-1.0.2 spec/kitabu/cli/export_spec.rb
kitabu-1.0.1 spec/kitabu/cli/export_spec.rb
kitabu-1.0.0 spec/kitabu/cli/export_spec.rb
kitabu-1.0.0.rc4 spec/kitabu/cli/export_spec.rb
kitabu-1.0.0.rc3 spec/kitabu/cli/export_spec.rb
kitabu-1.0.0.rc2 spec/kitabu/cli/export_spec.rb