On Jul 13, 2010, at 6:59 PM, Jonathan Rochkind wrote:
David Chelimsky wrote:
On Jul 13, 2010, at 6:05 PM, Jonathan Rochkind wrote:
Do you know about integrate_views?
http://rspec.info/rails/writing/controllers.html
I read about it in my quest through the documentation for a solution.
David Chelimsky wrote:
I don't think there's a good way to do that in RSpec-1. In RSpec-2,
however, you should be able to do this in a regular helper spec.
Okay, thanks. Can't wait until I get my app migrated to Rails3, glad
that Rspec has improved in flexibility in a great many ways, it
So the stock answer to this is don't do it. But I'm in a situation
where it's really what I want to do to test what I want to test.
a helper method:
def some_helper
render(:partial = some/partial, :locals = {:some = some}
end
or even:
def some_helper
content =
some_loop.each do
On Jul 13, 2010, at 5:43 PM, Jonathan Rochkind wrote:
So the stock answer to this is don't do it. But I'm in a situation
where it's really what I want to do to test what I want to test.
a helper method:
def some_helper
render(:partial = some/partial, :locals = {:some = some}
end
David Chelimsky wrote:
On Jul 13, 2010, at 5:43 PM, Jonathan Rochkind wrote:
against the return strings?
Any way at all? I've been trying for a while with no success. Thanks for
any advice.
RSpec version?
Good point. Rails2, rspec 1.3.0. Thanks.
--
Posted via
On Jul 13, 2010, at 6:05 PM, Jonathan Rochkind wrote:
David Chelimsky wrote:
On Jul 13, 2010, at 5:43 PM, Jonathan Rochkind wrote:
against the return strings?
Any way at all? I've been trying for a while with no success. Thanks for
any advice.
RSpec version?
Good point. Rails2,
David Chelimsky wrote:
On Jul 13, 2010, at 6:05 PM, Jonathan Rochkind wrote:
Do you know about integrate_views?
http://rspec.info/rails/writing/controllers.html
I read about it in my quest through the documentation for a solution.
This isn't actually a controller spec I'm trying to write,