diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index a589e2b..e6ffaaf 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -19,7 +19,9 @@ it 'runs init command' do run_command_and_stop('buchungsstreber init --debug') expect(last_command_started).to have_output(/erstellt/) - expect(config_file).to be_an_existing_file + # replicates path here, as matcher calls expand_path and will + # thus run afoul of aruba not wanting to expand absolute paths. + expect('~/.config/buchungsstreber/config.yml').to be_an_existing_file end %w[config edit execute show].each do |cmd|