Sha256: cbac4b29909971eeeb0d8f9835877dcf3486958c65a030622ee00b7f97a3765a

Contents?: true

Size: 384 Bytes

Versions: 17

Compression:

Stored size: 384 Bytes

Contents

require "spec_helper"
require "shelly/cli/command"

describe Shelly::CLI::Command do
  before { @command = Shelly::CLI::Command.new }

  context "when ENV['HOME'] is not set" do

    it 'should raise HomeNotSetError' do
      ENV.stub(:[]).with('HOME').and_return('')
      lambda {
        invoke(@command)
      }.should raise_error(Shelly::CLI::HomeNotSetError)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shelly-0.5.7 spec/shelly/cli/command_spec.rb
shelly-0.5.6 spec/shelly/cli/command_spec.rb
shelly-0.5.5 spec/shelly/cli/command_spec.rb
shelly-0.5.4 spec/shelly/cli/command_spec.rb
shelly-0.5.3 spec/shelly/cli/command_spec.rb
shelly-0.5.2 spec/shelly/cli/command_spec.rb
shelly-0.5.1 spec/shelly/cli/command_spec.rb
shelly-0.5.0 spec/shelly/cli/command_spec.rb
shelly-0.4.42 spec/shelly/cli/command_spec.rb
shelly-0.4.41 spec/shelly/cli/command_spec.rb
shelly-0.4.40 spec/shelly/cli/command_spec.rb
shelly-0.4.39 spec/shelly/cli/command_spec.rb
shelly-0.4.38 spec/shelly/cli/command_spec.rb
shelly-0.4.37 spec/shelly/cli/command_spec.rb
shelly-0.4.36 spec/shelly/cli/command_spec.rb
shelly-0.4.35 spec/shelly/cli/command_spec.rb
shelly-0.4.34 spec/shelly/cli/command_spec.rb