spec/kitabu/cli/permalinks_spec.rb in kitabu-2.1.0 vs spec/kitabu/cli/permalinks_spec.rb in kitabu-3.0.0
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
require "spec_helper"
describe Kitabu::Cli do
context "while running permalinks" do
it "recognizes command" do
Dir.chdir SPECDIR.join("support/mybook")
- expect {
+ expect do
capture(:stdout) { Kitabu::Cli.start(["permalinks"]) }
- }.to_not raise_error
+ end.to_not raise_error
end
end
end