mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 17:20:12 +01:00
26 lines
No EOL
465 B
Ruby
26 lines
No EOL
465 B
Ruby
require 'spec/adapters/ruby_engine/mri'
|
|
require 'spec/adapters/ruby_engine/rubinius'
|
|
|
|
module Spec
|
|
module Adapters
|
|
module RubyEngine
|
|
|
|
ENGINES = {
|
|
'mri' => MRI.new,
|
|
'rbx' => Rubinius.new
|
|
}
|
|
|
|
def self.engine
|
|
if const_defined?(:RUBY_ENGINE)
|
|
return RUBY_ENGINE
|
|
else
|
|
return 'mri'
|
|
end
|
|
end
|
|
|
|
def self.adapter
|
|
return ENGINES[engine]
|
|
end
|
|
end
|
|
end
|
|
end |