test/unit/juicer/minifyer/closure_compressor_test.rb in juicer-1.0.4 vs test/unit/juicer/minifyer/closure_compressor_test.rb in juicer-1.0.5

- old
+ new

@@ -11,21 +11,21 @@ @closure.stubs(:locate_jar).returns(@jar) end context "#save" do should "overwrite existing file" do - @closure.expects(:execute).with(%Q{#@cmd -js_output_file "#@output" -js "#@output"}) + @closure.expects(:execute).with(%Q{#@cmd --js_output_file "#@output" --js "#@output"}) @closure.save(@output, @output) end should "write compressed input to output" do - @closure.expects(:execute).with(%Q{#@cmd -js_output_file "#@output" -js "#@input"}) + @closure.expects(:execute).with(%Q{#@cmd --js_output_file "#@output" --js "#@input"}) @closure.save(@input, @output) end should "create non-existant path" do output = "some/nested/directory" - @closure.expects(:execute).with(%Q{#@cmd -js_output_file "#{output}/file.css" -js "#@input"}) + @closure.expects(:execute).with(%Q{#@cmd --js_output_file "#{output}/file.css" --js "#@input"}) FileUtils.expects(:mkdir_p).with(output) @closure.save(@input, "#{output}/file.css") end end