From fcdc3b6320678cf16dec576756b96e87d1e8c3a0 Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Mon, 3 Sep 2012 11:57:16 -0700 Subject: [PATCH] Tiny spec fix for Ruby 1.8.x --- spec/formats_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/formats_spec.rb b/spec/formats_spec.rb index 261ba45..c888aec 100644 --- a/spec/formats_spec.rb +++ b/spec/formats_spec.rb @@ -597,7 +597,7 @@ EOS # See https://github.com/michaeldv/awesome_print/issues/35 it "handle array grep when pattern contains / chapacter" do hash = { "1/x" => 1, "2//x" => :"2" } - grepped = hash.keys.grep(/^(\d+)\//) { $1 } + grepped = hash.keys.sort.grep(/^(\d+)\//) { $1 } grepped.ai(:plain => true, :multiline => false).should == '[ "1", "2" ]' end