diff --git a/.travis.yml b/.travis.yml index def3322a..fd44cf51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ rvm: - 2.0.0 - ruby-head - ree + - rbx-2.1.0 - rbx-18mode - rbx-19mode - jruby-18mode diff --git a/Gemfile b/Gemfile index c1a08177..7a34045e 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/spec/pry_repl_spec.rb b/spec/pry_repl_spec.rb index 8a0d8dc5..a6611310 100644 --- a/spec/pry_repl_spec.rb +++ b/spec/pry_repl_spec.rb @@ -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