Sha256: 3c4423fe3cd759cb44a18f1df761f83242e9517ccc8bf43d681942a13f8ffd89

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

# 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.yml')

    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')

    expect(STDOUT).to receive(:puts).with(success_message)

    described_class.new.execute
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
balboa-0.1.6 spec/balboa/cli/command/reset_command_spec.rb
balboa-0.1.5 spec/balboa/cli/command/reset_command_spec.rb