Fix specs on rbx-2.1.0

This commit is contained in:
Ryan Fitzgerald 2013-11-23 18:11:29 -08:00
parent 07b6e96883
commit eb150b71d7
3 changed files with 12 additions and 6 deletions

View File

@ -5,6 +5,7 @@ rvm:
- 2.0.0
- ruby-head
- ree
- rbx-2.1.0
- rbx-18mode
- rbx-19mode
- jruby-18mode

View File

@ -7,3 +7,8 @@ group :development do
gem 'rb-inotify', :require => 'false'
gem 'rb-fsevent', :require => 'false'
end
if RbConfig::CONFIG['ruby_install_name'] == 'rbx'
gem 'rubysl-singleton'
gem 'rb-readline'
end

View File

@ -17,13 +17,13 @@ describe "The whole thing" do
input 'raise "lorum"'
output /^RuntimeError: lorum/
input 'raise java.lang.Exception.new("foo")'
expected = defined?(java.lang.Exception) ? /Exception: foo/ : /^NameError: /
output expected
if defined?(java)
input 'raise java.lang.Exception.new("foo")'
output /Exception: foo/
input 'raise java.io.IOException.new("bar")'
expected = defined?(java.io.IOException) ? /IOException: bar/ : /^NameError: /
output expected
input 'raise java.io.IOException.new("bar")'
output /IOException: bar/
end
end
end