Sha256: f1ce453d22196badb5af0b91aaf17e50499e9faed737a04cae39d7cf5588108d

Contents?: true

Size: 695 Bytes

Versions: 2

Compression:

Stored size: 695 Bytes

Contents

require "spec_helper"

describe Guard::Cedar do
  let(:guard) { Guard::Cedar.new }

  describe "#start" do
    context "when all_on_start is set" do
      before { guard.options[:all_on_start] = true }

      it "runs all the specs" do
        guard.should_receive(:run_all)
        guard.start
      end
    end

    context "when all_on_start is not set" do
      before { guard.options[:all_on_start] = false }

      it "runs all the specs" do
        guard.should_not_receive(:run_all)
        guard.start
      end
    end
  end

  describe "#run_on_changes" do
    it "runs all the specs" do
      guard.should_receive(:run_all)
      guard.run_on_changes("monkey-butt")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-cedar-0.1.1 spec/lib/guard/cedar_spec.rb
guard-cedar-0.1.0 spec/lib/guard/cedar_spec.rb