Sha256: 81e895f73673754e9b4ccfe0e6c467f4ebe687ca4c13db6c1dc7d4c2d3210058

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

require 'spec_helper'

module RequirejsOptimizer

  module Step

    describe Clean do

      describe '#perform' do

        it 'removes the temporary build directory' do
          RequirejsOptimizer.stub(:build_dir).and_return("foo")
          FileUtils.should_receive(:rm_rf).with('foo')
          Clean.new.perform
        end

      end

    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
requirejs_optimizer-0.4.2 spec/lib/requirejs_optimizer/step/clean_spec.rb
requirejs_optimizer-0.3.2 spec/lib/requirejs_optimizer/step/clean_spec.rb
requirejs_optimizer-0.4.1 spec/lib/requirejs_optimizer/step/clean_spec.rb
requirejs_optimizer-0.2.0 spec/lib/requirejs_optimizer/step/clean_spec.rb
requirejs_optimizer-0.1.0 spec/lib/requirejs_optimizer/step/clean_spec.rb
requirejs_optimizer-0.0.5 spec/lib/requirejs_optimizer/step/clean_spec.rb