diff options
Diffstat (limited to 'spec/support/platforms.rb')
-rw-r--r-- | spec/support/platforms.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/support/platforms.rb b/spec/support/platforms.rb index b2b9526694..f009de39dd 100644 --- a/spec/support/platforms.rb +++ b/spec/support/platforms.rb @@ -1,5 +1,7 @@ module Spec module Platforms + include Bundler::GemHelpers + def rb Gem::Platform::RUBY end @@ -25,11 +27,11 @@ module Spec end def local - Gem::Platform.local.to_generic + generic(Gem::Platform.local) end def not_local - all_platforms.find { |p| p != Gem::Platform.local.to_generic } + all_platforms.find { |p| p != generic(Gem::Platform.local) } end def local_tag @@ -44,4 +46,4 @@ module Spec [:ruby, :jruby].find { |tag| tag != local_tag } end end -end
\ No newline at end of file +end |