summaryrefslogtreecommitdiff
path: root/spec/support/less_than_proc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/less_than_proc.rb')
-rw-r--r--spec/support/less_than_proc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/less_than_proc.rb b/spec/support/less_than_proc.rb
index 5098befbf1..515470968a 100644
--- a/spec/support/less_than_proc.rb
+++ b/spec/support/less_than_proc.rb
@@ -3,7 +3,7 @@ class LessThanProc < Proc
def self.with(present)
provided = Gem::Version.new(present.dup)
- self.new do |required|
+ new do |required|
if required =~ /[=><~]/
!Gem::Requirement.new(required).satisfied_by?(provided)
else