psyho / bogus

Fake library for Ruby
Other
359 stars 14 forks source link

Crashes on Rubinius #18

Closed solnic closed 11 years ago

solnic commented 11 years ago

getting for example this when running on rbx:

2) ROM::Session::Mapper#load when IM does not include the loaded object returns a newly loaded object
     Failure/Error: let(:loader) { fake(:loader) { ROM::Mapper::Loader } }
     SyntaxError:
       (eval):1: expecting ')'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/melbourne.rbc:81:in `syntax_error'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/melbourne.rbc:88:in `parse_string'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/compiler/stages.rbc:241:in `parse'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/compiler/stages.rbc:207:in `run'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/compiler/compiler.rbc:374:in `run'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/compiler/compiler.rbc:302:in `compile_eval'
     # /Users/solnic/.rvm/rubies/rbx-2.0.0/runtime/19/compiler/compiler.rbc:314:in `construct_block'
     # kernel/common/eval19.rb:61:in `instance_eval'
     # kernel/bootstrap/array.rb:68:in `each'
     # kernel/bootstrap/array.rb:68:in `each'
     # ./spec/unit/rom/session/mapper_spec.rb:6:in `__script__'
     # kernel/common/hash19.rb:257:in `fetch'
     # ./spec/unit/rom/session/mapper_spec.rb:32:in `__script__'
     # kernel/common/eval19.rb:45:in `instance_eval'
     # kernel/bootstrap/array19.rb:18:in `map'
     # kernel/bootstrap/array19.rb:18:in `map'
     # kernel/bootstrap/array19.rb:18:in `map'
     # kernel/loader.rb:697:in `run_at_exits'
     # kernel/loader.rb:717:in `epilogue'
     # kernel/loader.rb:850:in `main'

I'm not sure if you plan to support rubinius but I'd say you should...otherwise bogus won't be an option for A LOT of library authors :/

psyho commented 11 years ago

It looks like parameters, which we rely on very heavily in Bogus, is pretty buggy in RBX. When this issue is resolved, we should be good:

https://github.com/rubinius/rubinius/issues/2396

psyho commented 11 years ago

It looks like contract verification does not work on RBX because of this bug: https://github.com/rubinius/rubinius/issues/2398

wrozka commented 11 years ago

Fixed in rbx-head.