Re: [rspec-users] named route failing in class spec

2010-05-02 Thread Patrick J. Collins
> This is a pattern that I believe pre-dates mock objects, and is rarely > implemented these days because mocks allow us to better separate things. Hi David, As I am still quite new to rspec, my way of working has been purely based off of my own best guess of how to do something... This is the r

Re: [rspec-users] named route failing in class spec

2010-05-02 Thread David Chelimsky
On Sun, May 2, 2010 at 1:48 AM, Patrick J. Collins wrote: > I have something like: > > class Foo > >  def initialize(template) >   �...@template = template >  end > >  def link >    link_to "foo", foo_path >  end > >  def method_missing(*args, &block) >   �...@template.send(*args, &block) >  end >

Re: [rspec-users] named route failing in class spec

2010-05-02 Thread Patrick J. Collins
> Whate versions of ruby, rspec, and rails are you using? Please make it a > habit to include this information in queries like this. ruby 1.8.7 rails 2.3.5 rspec 1.3.0 Patrick J. Collins http://collinatorstudios.com ___ rspec-users mailing list rspec-u

Re: [rspec-users] named route failing in class spec

2010-05-02 Thread David Chelimsky
On May 2, 2010, at 1:48 AM, Patrick J. Collins wrote: > I have something like: > > class Foo > > def initialize(template) >@template = template > end > > def link >link_to "foo", foo_path > end > > def method_missing(*args, &block) >@template.send(*args, &block) > end > end >