Sha256: 410da6118a5be471655112ba45d3c671913c8c0c49938b32b23a9e718c49a587

Contents?: true

Size: 591 Bytes

Versions: 5

Compression:

Stored size: 591 Bytes

Contents

require 'spec_helper'

describe Guard::Sprockets2 do
  
  before do
    @options = {:option => true}
    @compiler = mock(:clean => true, :compile => true)
    Guard::Sprockets2::Compiler.stub(:new => @compiler)
    @guard = described_class.new(['watchers'], @options)
  end
  
  %w[ start run_all run_on_change ].each do |method|
    describe "##{method}" do
      it "cleans" do
        @compiler.should_receive(:clean)
        @guard.send(method)
      end
      
      it "compiles" do
        @compiler.should_receive(:compile)
        @guard.send(method)
      end
    end
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
guard-sprockets2-0.0.5 spec/guard/sprockets2_spec.rb
guard-sprockets2-0.0.4 spec/guard/sprockets2_spec.rb
guard-sprockets2-0.0.3 spec/guard/sprockets2_spec.rb
guard-sprockets2-0.0.2 spec/guard/sprockets2_spec.rb
guard-sprockets2-0.0.1 spec/guard/sprockets2_spec.rb