Sha256: 87c661addb032134638135d621bf8c3746016ba5845f58c8e33391b0716651c2

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Kitabu::Cli do
  context "while running version" do
    it "outputs version" do
      %w[version -v --version].each do |arg|
        output = capture(:stdout) { Kitabu::Cli.start([arg]) }.chomp
        expect(output).to eq("Kitabu version #{Kitabu::Version::STRING}")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kitabu-3.1.0 spec/kitabu/cli/version_spec.rb
kitabu-3.0.3 spec/kitabu/cli/version_spec.rb
kitabu-3.0.2 spec/kitabu/cli/version_spec.rb
kitabu-3.0.1 spec/kitabu/cli/version_spec.rb
kitabu-3.0.0 spec/kitabu/cli/version_spec.rb