> 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
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
>
> 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
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
>