summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorsazor <sazor.mail@gmail.com>2016-10-17 16:29:18 +0300
committersazor <sazor.mail@gmail.com>2016-10-18 09:47:28 +0300
commitc1c9dcc80b6f402a4e18ae5962de97d7d6d411eb (patch)
treeb1395180eefce09d684e72891b331b4e79c73918 /spec/support
parentdaf6edff21a11672158a342c25c5168f8441021a (diff)
downloadhashie-c1c9dcc80b6f402a4e18ae5962de97d7d6d411eb.tar.gz
Check ruby version without rubygems
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/ruby_version_check.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/ruby_version_check.rb b/spec/support/ruby_version_check.rb
index c3890c6..8261a8e 100644
--- a/spec/support/ruby_version_check.rb
+++ b/spec/support/ruby_version_check.rb
@@ -1,5 +1,6 @@
module RubyVersionCheck
def with_minimum_ruby(version)
- yield if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new(version)
+ yield if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >=
+ Hashie::Extensions::RubyVersion.new(version)
end
end