Sha256: 8c599db5eef1cdb43e534519f6072dded31b632520d6651562b03c5dfa4c6da4
Contents?: true
Size: 622 Bytes
Versions: 6
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' module RequirejsOptimizer module Step describe Compress do describe "#perform" do it "creates gzipped files for all js/css files" do Dir.should_receive(:glob).with(target_path_for("**", "*.{js,css}")).and_return(%w(file.css file-0123456789abcdef0123456789abcdef.css img.png)) subject.should_receive(:gzip_file).with('file-0123456789abcdef0123456789abcdef.css') subject.should_receive(:gzip_file).with('file.css') subject.should_receive(:gzip_file).with('img.png') subject.perform end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems