Sha256: 1213ab45a2965a889b81ed6d574513130442202830afed160b0881a956583573
Contents?: true
Size: 766 Bytes
Versions: 4
Compression:
Stored size: 766 Bytes
Contents
require "spec_helper" require "guard/lono" module Guard describe Lono 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 [], :notification => notification } let(:notification) { false } let(:command) { mock "command" } it "runs return true lono command runs successfully" do guard.stub(:command).and_return(true) guard.should_receive(:command).exactly(1).times subject end it "runs return false lono command runs unsuccessfully" do guard.stub(:command).and_return(false) expect { subject }.to throw_symbol(:task_has_failed) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
guard-lono-1.0.1 | spec/lono_spec.rb |
guard-lono-1.0.0 | spec/lono_spec.rb |
guard-lono-0.0.2 | spec/lono_spec.rb |
guard-lono-0.0.1 | spec/lono_spec.rb |