diff options
author | Richard Michael <rmichael@edgeofthenet.org> | 2012-05-04 19:54:58 +0200 |
---|---|---|
committer | Richard Michael <rmichael@edgeofthenet.org> | 2012-05-04 19:54:58 +0200 |
commit | 34ef8f63def8d4a9597f9c681e6e29465fc70d3c (patch) | |
tree | 6c383abea0a983ce0b448ef7f1454cdc59618b0d /spec/other | |
parent | adb4ad867e45863c5416443dddca9b0696e9b2fe (diff) | |
download | bundler-34ef8f63def8d4a9597f9c681e6e29465fc70d3c.tar.gz |
Ruby 1.8.7 does not have lookbehind ; fix the regex.
Diffstat (limited to 'spec/other')
-rw-r--r-- | spec/other/outdated_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/other/outdated_spec.rb b/spec/other/outdated_spec.rb index 91a00d93..e3935475 100644 --- a/spec/other/outdated_spec.rb +++ b/spec/other/outdated_spec.rb @@ -30,7 +30,7 @@ describe "bundle outdated" do out.should include("foo (1.0") # Gem names are one per-line, between "*" and their parenthesized version. - gem_list = out.split("\n").map { |g| g[/(?<=\* )(.*)(?= \()/] }.compact + gem_list = out.split("\n").map { |g| g[ /\* (.*) \(/, 1] }.compact gem_list.should == gem_list.sort end end |