Skip to content

Commit

Permalink
cli spec, fix warning for doubly expanding paths
Browse files Browse the repository at this point in the history
  • Loading branch information
BuJo committed Nov 1, 2020
1 parent 4d04a67 commit 8a4be97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 8a4be97

Please sign in to comment.