mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix specs on rbx-2.1.0
This commit is contained in:
parent
07b6e96883
commit
eb150b71d7
3 changed files with 12 additions and 6 deletions
|
@ -5,6 +5,7 @@ rvm:
|
|||
- 2.0.0
|
||||
- ruby-head
|
||||
- ree
|
||||
- rbx-2.1.0
|
||||
- rbx-18mode
|
||||
- rbx-19mode
|
||||
- jruby-18mode
|
||||
|
|
5
Gemfile
5
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue