spec/balboa/cli/command/reset_command_spec.rb in balboa-0.1.6 vs spec/balboa/cli/command/reset_command_spec.rb in balboa-0.1.7
- old
+ new
@@ -2,20 +2,18 @@
require 'spec_helper'
describe Balboa::CLI::Command::ResetCommand do
it 'deletes the .balboa.yml file' do
- expect(File).to receive(:delete).with('.balboa.yml')
+ expect(File).to receive(:delete).with(Balboa::CONFIG_FILE)
described_class.new.execute
end
it 'prints out a success message' do
success_message = "\nBalboa restored to initial settings!"
- allow(File).to receive(:delete).with('.balboa.yml')
+ allow(File).to receive(:delete).with(Balboa::CONFIG_FILE)
- expect(STDOUT).to receive(:puts).with(success_message)
-
- described_class.new.execute
+ expect(described_class.new.execute).to eq(success_message)
end
end