spec/helpers/ruby_exe_spec.rb in mspec-1.5.12 vs spec/helpers/ruby_exe_spec.rb in mspec-1.5.13
- old
+ new
@@ -44,9 +44,14 @@
it "returns 'ir' when passed :engine and RUBY_NAME is 'ironruby'" do
Object.const_set :RUBY_NAME, 'ironruby'
@script.ruby_exe_options(:engine).should == 'ir'
end
+ it "returns 'maglev-ruby' when passed :engine and RUBY_NAME is 'maglev'" do
+ Object.const_set :RUBY_NAME, 'maglev'
+ @script.ruby_exe_options(:engine).should == 'maglev-ruby'
+ end
+
it "returns RUBY_NAME + $(EXEEXT) when passed :name" do
bin = RUBY_NAME + (Config::CONFIG['EXEEXT'] || Config::CONFIG['exeext'] || '')
name = File.join ".", bin
@script.ruby_exe_options(:name).should == name
end