Hi, I am trying to write an RSpec 2 extension, which lets me test my templating view logic standalone without loading the "full rails", including controller, routes etc. etc.
I simply want to be able to take a String in the form of a valid ERB template and render it, where the @outputbuffer is on (for delayed handling of blocks), and then set any values in the view context and extend it with whatever helper modules that suit the particular context. The ActionView::TestCase, is a bit too "heavy" (includes too much outside of basic view functionality), so I have been looking at ActionView::Template. The #render method takes arguments view and a locals, which I think is a Hash. Is this what I should be aiming to use? Any examples of this kind of usage outside Rails? Kristian -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.