spec/guard/sprockets2_spec.rb in guard-sprockets2-0.0.5 vs spec/guard/sprockets2_spec.rb in guard-sprockets2-0.0.6

- old
+ new

@@ -21,6 +21,22 @@ @guard.send(method) end end end + context 'with clean disabled' do + before do + @options = {:option => true, :clean => false} + @guard = described_class.new(['watchers'], @options) + end + + %w[ start run_all run_on_change ].each do |method| + describe "##{method}" do + it "should not clean" do + @compiler.should_not_receive(:clean) + @guard.send(method) + end + end + end + end + end \ No newline at end of file