Re: [rspec-users] Passing self to matchers

2009-04-13 Thread David Chelimsky
On Mon, Apr 13, 2009 at 4:19 AM, Brandon Olivares wrote: > Hi, > > I've noticed in several matchers that the matcher method passes self to the > constructor of the class. Then that's used to call several of the methods > used. For instance, in RouteFor, self is passed, and it is used to call > ass

[rspec-users] Passing self to matchers

2009-04-13 Thread Brandon Olivares
Hi, I've noticed in several matchers that the matcher method passes self to the constructor of the class. Then that's used to call several of the methods used. For instance, in RouteFor, self is passed, and it is used to call assert_recognizes. I'm just curious why this is, and when this is requi