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

2011-05-06 Thread Gabriel Ayuso
Hi Josh, Thanks for your feedback. After calling instance_methods on my class I saw that the selector was called and also tried to setup the expectation as you mentioned. Sadly this didn't work either. I get the following syntax error: ...FFF Failures: 1) MyClass loginWithEmail:password: sh

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

2011-05-06 Thread Joshua Ballanco
Hi Gabriel, So, you've stumbled across a bit of a confusing "feature" of MacRuby and interaction with Obj-C. The full method name of the Obj-C method, as Ruby sees it, is actually "buildRequestWithUrl:method:header:body:", since this is the selector. So, I think your mock should work if you sim

[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