lib/decisive/template_handler.rb in decisive-0.6.1 vs lib/decisive/template_handler.rb in decisive-0.6.2
- old
+ new
@@ -23,10 +23,9 @@
if controller.is_a?(ActionController::Live)
begin
context.each do |row|
response.stream.write row.to_csv(force_quotes: true)
end
- raise if Rails.env.test? # WTF WTF without this the stream isn't closed in test mode??? WTF WTF
ensure
response.stream.close
end
""
else