Browse files

Fix test failure caused by JRuby's different handling of sort

  • Loading branch information...
1 parent f1e1a79 commit c211380864271667c37bb6d666e5d0a1ea558918 @wagenet wagenet committed Oct 25, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/sorted_pipeline_spec.rb
View
5 spec/sorted_pipeline_spec.rb
@@ -15,10 +15,9 @@
end
it "uses sorted input files for #output_files" do
- # only 2 files in this test. Return 1 so the
- # first comparison reorders the array
+ # Reverse sort
pipeline.comparator = proc { |f1, f2|
- 1
+ f2 <=> f1
}
pipeline.input_files = [input_file("jquery.js"), input_file("jquery_ui.js")]

0 comments on commit c211380

Please sign in to comment.