Sha256: 394d11120a0767710c3de32e902637da84392d7f2fd1a4cc6f5b88ba5506a935

Contents?: true

Size: 493 Bytes

Versions: 29

Compression:

Stored size: 493 Bytes

Contents

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 Object.const_defined?('RUBY_ENGINE')
          return Object.const_get('RUBY_ENGINE')
        else
          return 'mri'
        end
      end
    
      def self.adapter
        return ENGINES[engine]
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 8 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/adapters/ruby_engine.rb
dchelimsky-rspec-1.1.11.1 lib/spec/adapters/ruby_engine.rb
dchelimsky-rspec-1.1.11 lib/spec/adapters/ruby_engine.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb
pictrails-0.5.0 vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb
rspec-0.0.10 lib/spec/adapters/ruby_engine.rb
rspec-1.1.10 lib/spec/adapters/ruby_engine.rb
rspec-1.1.7 lib/spec/adapters/ruby_engine.rb
rspec-1.1.6 lib/spec/adapters/ruby_engine.rb
rspec-1.1.5 lib/spec/adapters/ruby_engine.rb