[MacRuby-devel] MiniTest and TestUnit implementations

2011-05-04 Thread anoiaque
Hi, Why both minitest and testunit modules are so tied to output in the code ... Why is there no class/instance method with which i can get result as an object (~ Minitest::Unit.run() => ) Why must i hack theses modules(even if its quite easy with ruby) to get result as an object i can work wit

Re: [MacRuby-devel] MiniTest and TestUnit implementations

2011-05-04 Thread Mark Rada
Hi, Minitest doesn't have a really clean way of doing what you want, but it does have a simple way. If you look at minitest/pride: https://github.com/seattlerb/minitest/blob/master/lib/minitest/pride.rb It implements an alternative output format for minitest that you could copy and the

[MacRuby-devel] "can't convert Class into String (TypeError)"

2011-05-04 Thread Nathaniel Talbott
I'm getting this error when trying to do a performSelector:target:argument:order:modes: on an NSRunLoop, and as far as I can tell I have all the arguments correct: https://gist.github.com/955260 You can reproduce by simply dropping that AppDelegate.rb in to a freshly generated MacRuby project;

Re: [MacRuby-devel] "can't convert Class into String (TypeError)"

2011-05-04 Thread Nathaniel Talbott
On Wed, May 4, 2011 at 10:31, Nathaniel Talbott wrote: > Am I doing something stupid here, or is something broken underneath? To answer my own question, I was doing something stupid. Turns out the argument to "modes:" should be an array of strings, not a single string. One thing I learned: if s

Re: [MacRuby-devel] "can't convert Class into String (TypeError)"

2011-05-04 Thread Pavlos Vinieratos
yep.. LLDB should be tweaked to understand MacRuby. well.. sometime :) also -> http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSRunLoop_Class/Reference/Reference.html says here modes arg should be an array. I just saw the question and your answer, or I wou

[MacRuby-devel] hpricot and macruby?

2011-05-04 Thread macruby
With: MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] and having done successfully: macgem install hpricot ... I get this when trying to use the actual gem: dyld: lazy symbol binding failed: Symbol not found: _rb_enc_to_index Referenced from: /Library/Frameworks/MacRuby.framework/Ver

Re: [MacRuby-devel] hpricot and macruby?

2011-05-04 Thread Andre Lewis
Daniel, I've had good lock with Nokogiri on MacRuby. ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] macruby rspec mock odd behavior

2011-05-04 Thread Gabriel Ayuso
Hi, I'm having some strange issue with rspec mocks and hope someone can point out what I'm doing wrong. I have a Objective C class with the method: buildRequestWithUrl:method:header:body: I wrote an rspec mock for this class. I'm setting up an expectation as follows: @requestBuilder.sh

Re: [MacRuby-devel] hpricot and macruby?

2011-05-04 Thread Laurent Sansonetti
Hi Daniel, I think the master branch is able to run hpricot, although I recommend using NSXMLDocument. Laurent On May 4, 2011, at 12:56 PM, macr...@djc.net wrote: > With: > MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] > and having done successfully: > macgem install hpricot ... >