Sha256: a278b41863faa067fd5754e4341fc75933e8354bdaa2a485e2d8dedf9abb8563

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

require "spec_helper"

describe Praegustator::CLI do
  describe "#taste" do
  end

  describe "#validate" do
    before do
      Praegustator::Executor.any_instance.stub(:execute).and_return('foo')
    end
    subject { Praegustator::CLI.new.validate("foo") }
    it { should eq 'foo' }
  end

  describe "#init" do
    describe "#init" do
      it "sets knife_location" do
        Praegustator::Setup.any_instance.should_receive(:init).with("foo")
        Praegustator::CLI.new.init("foo")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
praegustator-0.2.0 spec/praegustator/cli_spec.rb
praegustator-0.1.0 spec/praegustator/cli_spec.rb