Sha256: 79cd983b5ca1f71299ba2af44119deb36db4c44007dadffe3a48bf7e1085eabc
Contents?: true
Size: 586 Bytes
Versions: 5
Compression:
Stored size: 586 Bytes
Contents
require 'spec_helper' describe 'RubyEngine' do before :all do RubyEngine.instance_variable_set(:@interpreter, "jruby") end it 'should display RUBY_ENGINE if called directly (to_s)' do RubyEngine.to_s.should == 'jruby' end describe '.is?' do it 'returns true if current ruby engine matches' do RubyEngine.is?('jruby').should == true end it 'returns false if current ruby engine does not match' do RubyEngine.is?('maglev').should == false end it 'also supports regex' do RubyEngine.is?(/ruby/).should == true end end end
Version data entries
5 entries across 5 versions & 1 rubygems