Sha256: c57d5e081f4c36ac5008fc97d2f53034a946b5076e3f18990a5faea9f45bb318
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
require "spec_helper" require "guard/cloudformation" module Guard describe Cloudformation do before { Notifier.stub(:notify) } it { should be_a_kind_of ::Guard::Guard } describe "#run_all" do subject { guard.run_all } let(:guard) { described_class.new [], :templates_path => "templates", :notification => notification } let(:notification) { false } let(:command) { mock "command" } before do guard.stub(:command).and_return(command) guard.stub(:all_paths).and_return(["/path/1", "/path/2"]) end it "runs validate for templates" do guard.should_receive(:command).exactly(2).times subject end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guard-cloudformation-0.0.3 | spec/cloudformation_spec.rb |
guard-cloudformation-0.0.2 | spec/cloudformation_spec.rb |