lib/assert/view/base.rb in assert-view-0.4.2 vs lib/assert/view/base.rb in assert-view-0.5.0

- old
+ new

@@ -26,14 +26,13 @@ # use Undies to render the template # using the view's template file # streaming to the view's output io # passing in the view itself and any runner_callback as locals def render(*args, &runner_callback) - locals = { + Template.new(Undies::Source.new(self.class.template), { :view => self, :runner => runner_callback - } - Template.new(self.output_io, locals, &self.class.template) + }, Undies::Output.new(self.output_io)) end module ClassMethods # make any helper methods available to the template