Sha256: f72d71e25686f4dd377a17e6e8526a6c834b272c3986635da0a741d0e485f040

Contents?: true

Size: 669 Bytes

Versions: 29

Compression:

Stored size: 669 Bytes

Contents

describe Spec::Adapters::RubyEngine do
  it "should default to MRI" do
    Spec::Adapters::RubyEngine.adapter.should be_an_instance_of(Spec::Adapters::RubyEngine::MRI)
  end
  
  it "should provide Rubinius for rbx" do
    Spec::Adapters::RubyEngine.stub!(:engine).and_return('rbx')
    Spec::Adapters::RubyEngine.adapter.should be_an_instance_of(Spec::Adapters::RubyEngine::Rubinius)
  end
  
  it "should try to find whatever is defined by the RUBY_ENGINE const" do
    Object.stub!(:const_defined?).with('RUBY_ENGINE').and_return(true)
    Object.stub!(:const_get).with('RUBY_ENGINE').and_return("xyz")
    Spec::Adapters::RubyEngine.engine.should == "xyz"
  end
end

Version data entries

29 entries across 29 versions & 8 rubygems

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