aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other
diff options
context:
space:
mode:
authorRichard Michael <rmichael@edgeofthenet.org>2012-05-04 19:54:58 +0200
committerRichard Michael <rmichael@edgeofthenet.org>2012-05-04 19:54:58 +0200
commit34ef8f63def8d4a9597f9c681e6e29465fc70d3c (patch)
tree6c383abea0a983ce0b448ef7f1454cdc59618b0d /spec/other
parentadb4ad867e45863c5416443dddca9b0696e9b2fe (diff)
downloadbundler-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.rb2
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