From 28722066aa4b03a1b981f14e375497940e9f40e4 Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Thu, 24 Oct 2024 11:45:27 +1100 Subject: Add CLI::run tests --- spec/cli_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec') diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index 0062c1c..9d448d0 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -39,6 +39,15 @@ RSpec.describe CLI do end end + describe '#run' do + it 'prints a message that it is running actions from the actions file' do + expect do + cli = CLI.new([valid_file_path]) + cli.run + end.to output(/Running actions from file: test_actions.txt against the family tree./).to_stdout + end + end + describe '#validate_arguments' do context 'when no arguments are provided' do it 'prints usage message and exits' do -- cgit v1.2.3