spec/spec_helper.rb in inline_templates-0.0.2 vs spec/spec_helper.rb in inline_templates-0.0.3
- old
+ new
@@ -16,9 +16,13 @@
controller = nil
formats = nil
view = ActionView::Base.new inner_context, assigns, controller, formats
+ def view.invoke_helper_like_class(klass, *args, &block)
+ klass.new(self, *args, &block).to_s
+ end
+
InlineTemplates.render view, { virtual_path: "(inline)" }, locals, &template
end
class TestController < ActionController::Base
ReferenceOutput = "<div>test</div>"