Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[ANN] testy.rb - ruby testing that's mad at the world
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Phlip, post: 4635301"] You gotta use Ripper to convert the block to opcodes, then eval them Who was just fussing about "too many lines of code in the framework"? Right: report = journal do my_code() end Inside journal{}, everything the Ruby VM does gets packed into a report. Then you rip the report to get back to your details. That's what assert{ 2.0 } _can't_ do, so it goes in two passes. The first pass is a normal block.call, to detect success or failure. This is so any bugs in the second pass don't throw the test run. The second pass puts the block into Ripper to decompile it, and then the fun starts. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] testy.rb - ruby testing that's mad at the world
Top