On Feb 22, 9:52 pm, Jeremy Woertink <[email protected]> wrote:
> Frederick Cheung wrote in post #983169:
>
> > On Feb 21, 3:39am, Jeremy Woertink <[email protected]> wrote:
> >> Same thing happens if I call the full path to that partial.
> > rspec should realise that the code under test is a helper is the spec
> > is in spec/helpers (and so should add the required stuff to the test
> > environment that allows you to call actionviewy stuff.
>
> > Fred
>
> I'm sorry, I don't quite understand. Are you saying I should require all
> the ActionView stuff in my test? That might make the test pass, but when
> I go to use the actual gem in development, it would fail, wouldn't it?
>
No. I'm saying that if your spec file is in spec/helpers then rspec
should assume that it's dealing with a view helper, and so will set up
the test environment accordingly.

Fred

> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to