Re: [MacRuby-devel] macruby rspec mock odd behavior

2011-05-06 Thread Gabriel Ayuso
) ), "Invalid URL." ) assert_equal( "GET", args[:method], "Wrong HTTP method." ) end In the other project I also tried to use mocha instead of rspec's mocks but I had the same issues. Apparently the mocking frameworks can't define

[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

[MacRuby-devel] dtrace doesn't get sourcefile and line numbers

2011-02-19 Thread Gabriel Ayuso
I ran a dtrace script on the MacRuby samples to print all the info provided to the method_entry probe. The sourcefile was always either empty or "core" and the linenumber was always 0. Do I have to execute the script in some particular way for this information to be received? SCRIPT: --

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-13 Thread Gabriel Ayuso
7; from /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/Gems/1.9.2/gems/minitest-2.0.2/lib/minitest/unit.rb:558:in `block' ' Gabriel Ayuso On Feb 13, 2011, at 1:08 PM, Eloy Duran wrote: > Did you also try installing the latest minitest + mocha as suggested

[MacRuby-devel] MacRuby Unit Test Code Coverage

2011-02-13 Thread Gabriel Ayuso
MacRuby is great for testing not only MacRuby code but also Objective-C code. I find it nicer than using OCTest and OCMock. Is there a way to use existing code coverage tools such as rcov or gcov to check the coverage of MacRuby unit tests? Thanks, Gabriel Ayuso

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-11 Thread Gabriel Ayuso
hen the NoMethodError exception would be thrown: uncaught Objective-C/C++ exception... 2011-02-11 23:43:50.675 macruby[83143:903] *** Terminating app due to uncaught exception 'NoMethodError', reason: '/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/minitest/unit.rb:

[MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-11 Thread Gabriel Ayuso
s because I can't use mocha but the NoMethodError exception which was thrown is not thrown anymore. Am I missing something? Thanks, Gabriel Ayuso ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel