-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test is failing with Rubinius #36
Comments
I lost some time debugging ... i think the problem is with local_variables. In Rubinius, "ls" is always empty and should not be, should return "new variables". |
Yes, I've rn into this too. I spent some time debugging too but couldn't found what the problem was. A couple days ago I opened a similar issue in Rubinius but it happened only when using IRB (they might be related though): |
$ruby -v I did a test_rbx.rb in the project's root:
When a execute
I can't simulate the problem. |
Updating information ...
With rubinus, when i execute, i receive:
With 1.9.3, i receive:
|
I found the problem! |
Great! Can't wait to see what it was :) |
Hi txus! |
Your patch is fine! And thanks to it, I've been able to reproduce the bug in rbx and rbx-2.0.0pre. The thing is: in rbx, using instance_eval with a string breaks inner eval'ing of local variables. But since this is an rbx bug and not rack-webconsole's, I prefer not to merge the patch and wait until the bug in rbx is fixed. I've opened a pull request with a failing spec and will try to work on this. If you find the solution please comment there and submit a pull request as well! :) I'll keep you posted anyway. |
Ok, thanks for reply! |
This was already fixed in Rubinius, but now some tests fail, mostly regarding to multiline stuff. Nevertheless, ripl-multi_line passes all its tests with rbx, so I'm not sure what's wrong. |
@rogerleite any thoughts on what's wrong with ripl-multiline and rack-webconsole? :) |
Closing this until we get more insight into the ripl-multiline failures. Feel free to reopen. |
$ruby -v
rubinius 1.2.5dev (1.8.7 9b88cd26 yyyy-mm-dd JI) [i686-pc-linux-gnu]
$uname -a
Linux HDU64511 2.6.38-10-generic-pae #46-Ubuntu SMP Tue Jun 28 16:54:49 UTC 2011 i686 i686 i386 GNU/Linux
$rake test
/home/roger/.rvm/rubies/rbx-master/bin/rbx -I"lib:spec" -I"/home/roger/.rvm/gems/rbx-master@global/gems/rake-0.9.2/lib" "/home/roger/.rvm/gems/rbx-master@global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "spec/rack/webconsole_spec.rb" "spec/rack/webconsole/sandbox_spec.rb" "spec/rack/webconsole/asset_helpers_spec.rb" "spec/rack/webconsole/assets_spec.rb" "spec/rack/webconsole/repl_spec.rb"
Run options: --seed 37563
Running tests:
...encoding options not supported in 1.8
.encoding options not supported in 1.8
.encoding options not supported in 1.8
...encoding options not supported in 1.8
encoding options not supported in 1.8
encoding options not supported in 1.8
.encoding options not supported in 1.8
encoding options not supported in 1.8
encoding options not supported in 1.8
.encoding options not supported in 1.8
encoding options not supported in 1.8
encoding options not supported in 1.8
.....encoding options not supported in 1.8
encoding options not supported in 1.8
encoding options not supported in 1.8
...F.............
Finished tests in 0.562222s, 56.9170 tests/s, 124.5060 assertions/s.
test_0002_maintains_local_state_in_subsequent_calls_thanks_to_an_evil_global_variable(Rack::Webconsole::Repl::#call) [/home/roger/dev/trivial/rack-webconsole/spec/rack/webconsole/repl_spec.rb:44]:
--- expected
+++ actual
@@ -1 +1 @@
-"32"
+"Error: undefined local variable or method `a' on an instance of Rack::Webconsole::Sandbox."
32 tests, 70 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [/home/roger/.rvm/rubies/rbx-master/bin/rbx...]
Tasks: TOP => test
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered: