summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Szukalski <szymon@skas.io>2024-10-24 11:45:27 +1100
committerSzymon Szukalski <szymon@skas.io>2024-10-24 11:45:27 +1100
commit28722066aa4b03a1b981f14e375497940e9f40e4 (patch)
treeb5c9f00fcf7ed079805859692da819c0dcfed94c
parentc1dcd5f91ff082025cbba195af7ed938ce217667 (diff)
Add CLI::run tests
-rw-r--r--spec/cli_spec.rb9
1 files changed, 9 insertions, 0 deletions
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