From: Sarah Allen Date: 2009-03-03T06:19:11+09:00 Subject: Re: passing a method as a paramter Rick Denatale wrote: > Okay, I'm curious where you found the topfunky power tools plugin. > There's not much that google reveals about the usage. I'm just getting into TDD. I experimented with cucumber a bit and really liked it, but I'm diving into an old codebase with lots of pre-existing unit tests. I wanted to understand the basics, so (as you guessed) I bought the peepcode tutorial. > Now, as I say, this plugin doesn't seem to be very popular based on a > google search, and it's rather old. There are probably more 'modern' > approaches to > testing required field validations these days using Test::Unit tests in > Rails, I'm not as up on that as I tend to use RSpec rather than > Test::Unit. If its wisdom is out of date, is there another resource you recommend? Or is everyone just skipping unit tests these days in favor of the BDD tools? > And since this really IS a Rails question, it probably would have gotten > a better response, quicker if it had been submitted ot the ruby on rails > mailing list. Yeah, I see that in retrospect -- seemed like a basic language question at the time. Thanks so much for digging in and letting me know the scoop, which I clearly didn't fully understand from the screencast. Of course, now I know four ways to pass a method as a parameter, which is fabulous. Cheers, Sarah -- Posted via http://www.ruby-forum.com/.