spec/kitabu/cli/version_spec.rb in kitabu-2.1.0 vs spec/kitabu/cli/version_spec.rb in kitabu-3.0.0

- old
+ new

@@ -1,11 +1,13 @@ +# 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 + output = capture(:stdout) { Kitabu::Cli.start([arg]) }.chomp expect(output).to eq("Kitabu version #{Kitabu::Version::STRING}") end end end end