# frozen_string_literal: true require 'spec_helper' describe Balboa::CLI::Command::ResetCommand do it 'deletes the .balboa.yml file' do 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::CONFIG_FILE) expect(described_class.new.execute).to eq(success_message) end end