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