From 7725f7396680df8c7ca0c8c253b7db171424deb2 Mon Sep 17 00:00:00 2001 From: Rafael Gomes Date: Thu, 11 Jan 2024 20:05:02 -0300 Subject: [PATCH] test: add specs for version command with spec/dummy app --- spec/command/version_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/command/version_spec.rb diff --git a/spec/command/version_spec.rb b/spec/command/version_spec.rb new file mode 100644 index 00000000..e3edce64 --- /dev/null +++ b/spec/command/version_spec.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +require "spec_helper" + +describe Command::Version, parallel: true, slow: false do + it "displays version" do + result = run_command("version") + + expect(result[:status]).to eq(0) + expect(result[:stdout]).to include(Cpl::VERSION) + end +end