summaryrefslogtreecommitdiff
path: root/spec/support/requirement_checker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/requirement_checker.rb')
-rw-r--r--spec/support/requirement_checker.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/support/requirement_checker.rb b/spec/support/requirement_checker.rb
deleted file mode 100644
index e6bd0eb50d..0000000000
--- a/spec/support/requirement_checker.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# frozen_string_literal: true
-
-class RequirementChecker < Proc
- def self.against(present)
- provided = Gem::Version.new(present)
-
- new do |required|
- !Gem::Requirement.new(required).satisfied_by?(provided)
- end.tap do |checker|
- checker.provided = provided
- end
- end
-
- attr_accessor :provided
-
- def inspect
- "\"!= #{provided}\""
- end
-end