On Monday, February 23, 2015 at 5:54:18 AM UTC-8, Nicholas Wieland wrote:
>
> Hi I'm trying to test the return the value returned by a method that 
> accepts a block, that should yield a double.
>
> https://gist.github.com/ngw/1375bef1dfb658074784
>
> I don't know what I'm doing wrong, most probably I don't understand how to 
> use the matched. Can someone help me out?
>
>   ngw
>

 `yield_with_args` expects arguments, which specify what arguments you 
expect to be yielded.  You passed `yield_with_args` no args.  I think you 
want `yield_with_args(post)`.

That said, you pasted only your code, and not the output RSpec is giving 
you, so I'm not quite sure what isn't working how you expect.  If there's 
more to it than that, please post the RSpec failure you're getting.

HTH,
Myron 

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/3a019cbc-881b-4fae-93bd-00790188287d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to