Sha256: 7f463b0eda48107480e2b96958fb7814d4c58ea62b939c7d8051f258c463ca4e

Contents?: true

Size: 473 Bytes

Versions: 6

Compression:

Stored size: 473 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

6 entries across 6 versions & 1 rubygems

Version Path
kitabu-2.1.0 spec/kitabu/cli/export_spec.rb
kitabu-2.0.4 spec/kitabu/cli/export_spec.rb
kitabu-2.0.3 spec/kitabu/cli/export_spec.rb
kitabu-2.0.2 spec/kitabu/cli/export_spec.rb
kitabu-2.0.1 spec/kitabu/cli/export_spec.rb
kitabu-2.0.0 spec/kitabu/cli/export_spec.rb