prawn-rails 1.1.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +25 -6
  3. data/README.md +36 -13
  4. data/lib/prawn-rails.rb +2 -2
  5. data/lib/prawn-rails/document.rb +10 -5
  6. data/lib/prawn-rails/rails_helper.rb +21 -10
  7. data/lib/prawn-rails/{engine.rb → railtie.rb} +1 -1
  8. data/lib/prawn-rails/renderer.rb +2 -11
  9. data/lib/prawn-rails/version.rb +1 -1
  10. data/test/dummy_app/app/assets/config/manifest.js +3 -0
  11. data/test/dummy_app/app/controllers/reports_controller.rb +21 -2
  12. data/test/dummy_app/app/mailers/reports_mailer.rb +18 -0
  13. data/test/dummy_app/app/views/reports/custom.pdf.prawn +3 -0
  14. data/test/dummy_app/app/views/reports/custom_disposition.pdf.prawn +3 -0
  15. data/test/dummy_app/app/views/reports/custom_filename.pdf.prawn +3 -0
  16. data/test/dummy_app/app/views/reports_mailer/send_report.html.erb +1 -0
  17. data/test/dummy_app/config/application.rb +0 -11
  18. data/test/dummy_app/config/routes.rb +5 -0
  19. data/test/dummy_app/log/test.log +684 -2655
  20. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/0Q/0QR6jgJcsDY23uF8NGHFYajkal8CGG4d3kOZQCD8Oj8.cache +1 -0
  21. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/1K/1KcQYwe3g9uhY2WePD1_5P38IzP0Veu8rDPI0wXQSP8.cache +1 -0
  22. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/{E1/E18Q7xE2E1RWvLRrvvBEf0ahfumckOlJWqD7YiPqLAk.cache → 4X/4XWDJRe7gZAeojFwJq7j6jJxRr152aQBfyhVtPPSHDY.cache} +0 -0
  23. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/{QP/QPocswuHM6KXKYd99JclYrybZep_vYHyfZQ-nGJB5uU.cache → 7z/7zB4MNaDZMfwUPQ7LsLGHLt1EAx1oMCEUjywneVyoyY.cache} +0 -0
  24. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/{kA/kAfbx3YIMg0L2tevtZdwbRjKKy9xOmYlXJ7LapMXDME.cache → 8D/8D13-8wUZxyVgrsD9RHdWUPhLlWcqnHXtOBMOPQRX-Q.cache} +0 -0
  25. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/{VK/VKv8TUCURhWXKU5qrG7ocs75FsysCWNtswhqtTi7Lfw.cache → Yr/YrGeNwkHFUXGwgJhi0aqJdEHL--OyRwU5aN5azmIXM4.cache} +0 -0
  26. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/{S9/S9TmgasHOyBiOSg3OOpu2mzuUwMxxUE3zyKrExqIryQ.cache → ib/ibSeAobTqAE0a-v_-umXpnbXaIEx_WOtSsQkSRJCwwI.cache} +0 -0
  27. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/mO/mOu9n3QmqPXFbaUP-4RAuwabvsLdudRBvk9LMIOTSoI.cache +1 -0
  28. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/{rT/rTYHFXiH_g6ZVTgNXdVrDz3fihYKq9Diqso1lzP257o.cache → vt/vtyC4n-7HZNOJV7EprjE7ThndKZkG00OVD8sO8cUFAM.cache} +0 -0
  29. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/wt/wtoVyr5IaVgQI72M_TLZFUNHeStJ5maRaHlfA8Vt6d0.cache +1 -0
  30. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/-i/-i0h20pCtmvENM-EAyaKkJDFhjn-HuXuoE0e1sLu_rg.cache +0 -0
  31. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/0r/0r4iTRUbzH4dQwbjPscLVpHM1SJyEKVXeCEzD_U9JYE.cache +0 -0
  32. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/3N/3NnKgR2TsTI1qCXKZpts0uJzp2dRJcoYp3nnFU6YE4o.cache +0 -0
  33. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/4O/4O6Anm3R8aSIVfMhGtp5tZK3x17fcY1SbWoDN_6hb-o.cache +0 -0
  34. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/6y/6yMwFwpdEybDnrikBloKhYP4Zmo9Ry746DScoqO8mbE.cache +1 -0
  35. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/7z/7zB4MNaDZMfwUPQ7LsLGHLt1EAx1oMCEUjywneVyoyY.cache +1 -0
  36. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/8D/8D13-8wUZxyVgrsD9RHdWUPhLlWcqnHXtOBMOPQRX-Q.cache +1 -0
  37. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Ac/Ac0RnYBszO_tvu-01dVJjO6aKZedDO2TVCAwpY5nE4U.cache +1 -0
  38. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Do/Do83AoOat5W-c1g7piDGy2GMmffsY6JY0Qfuh5PY3GM.cache +0 -0
  39. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/FD/FDmzMYru4EyGcs7Q7tsCbapZmNV-jXENb6M-UuS8GLs.cache +1 -0
  40. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/FH/FHiO02EbiWfhKFHA3d6jTB6d50AXJzY9OjwpyzlbR3A.cache +1 -0
  41. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Jn/JnmWS5ayWWDAiBYz39zc51V2mHFWYAlXjW-vPbehyvk.cache +1 -0
  42. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Jr/JraYt1MnVVm8nrRu036hPHr_-BxBo2RwGcH_4XFDk9g.cache +0 -0
  43. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/LQ/LQQTiHeHlmh1Fwvuv1Ss9ne5mXE0TOv2xaanJ40LEXA.cache +0 -0
  44. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/LR/LRLaw7viwBb9Mi_VFZxGbKIooy8Fqf1aB_iOTETsMyc.cache +0 -0
  45. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Mj/MjwYGG9GkHD1fwwH2bg66EBYl3zCA_mqeDF9otey4-U.cache +0 -0
  46. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/OH/OHFQxWHvIcKq2nREonlhK8AgUKTRZ-2tDjQIRFoh400.cache +1 -0
  47. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/QV/QVq7YZh551f-JSU-9f9VWDRJA0Wm_LcbdJfJEO45hpY.cache +1 -0
  48. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Rx/RxPz7Gq0QcrSvjCMwAGBbCp9-4uiZixta20a-pY50G0.cache +1 -0
  49. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Sd/SdKiVwcnL47CkgJH6d6rg8bT2jeMfr_KOpH6K-e_Rpw.cache +1 -0
  50. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/Tq/TqJjVveNs9BoMZZ0bqrtV17QUpcioQePyc75rUF8Q5U.cache +0 -0
  51. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/WX/WXW-hCt_qs8QZgCDuLbIdi4PEZY5Dr4gkk3TG2bzIlA.cache +1 -0
  52. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/X0/X0VVDULN8me11G85S0HRqtRtWpg2evTeD-eptzBX0Js.cache +1 -0
  53. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/bc/bc6phGXVat2w60GIQpknrZ6UeHcwGAJkPSEyx2vzYWA.cache +1 -0
  54. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/cc/ccsnAmW1sI8J39ktFOU92ag0Cmd98hy1nLoiYxk-ztA.cache +0 -0
  55. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/cq/cqmOKwCIiucE1noRNr0g5M-9rOz5lOw_KfXGRITzjfM.cache +0 -0
  56. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/dL/dLpVVClnOjqhfdUOtaPPRDGP73ARy79nba4H4B4TtkQ.cache +0 -0
  57. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/i5/i5ZEAsQ_Rav4MDMy4ihQldRNRjQ8rSickZnnbPrf8MM.cache +0 -0
  58. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/iv/ivPda3JMWfbu-IHENKRMM5Y-RPDGx17E-UsDHaRw2l0.cache +1 -0
  59. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/jX/jXTNqwlV7NH3QgrxukXmrtTRmJdf7JLsLthOWuSajAk.cache +1 -0
  60. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/oL/oL18MfHhURyZjTEiCN9pzxDO5yolnjepKPIQ3AxRtuw.cache +0 -0
  61. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/pC/pCWceIteP62iSWMjZn19ap3KwUG6vXoQUzXAe5Pd07s.cache +1 -0
  62. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/pv/pv6tV3CDkIAmLXdU8EPLlNEkXAKJPufVD4VP30o4fWo.cache +0 -0
  63. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/qY/qYZa9MjWU2euhPKhmXxsJtfsHa76D0-yIqmqhhqDnWM.cache +0 -0
  64. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/ro/roxJL7F-lfG7snTu-4sBGaTfHUu94FPZMfWpTEJq-V8.cache +1 -0
  65. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/tV/tVR6xDtsNbiDca0JyoaKp4tirI4zYUF0RiWbw-9qyP0.cache +1 -0
  66. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/uO/uOomFpb2HCobA5V40idjrZP3fmfIzbyS21BXqdFnonw.cache +0 -0
  67. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/vv/vvPcNRT1bVyxTWN8IxKtvuBhxXib3G0tzztnaz6AE9k.cache +0 -0
  68. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/wX/wX5yL9P13fJNPuZX10N7nQYMaQJl8JdZKPpsRiESJgE.cache +0 -0
  69. data/test/dummy_app/tmp/cache/assets/sprockets/v4.0.0/yy/yycp8-xBCXFX3VWJYNtJkJvzZD2XEejmUso7wI-7cbo.cache +0 -0
  70. data/test/integration/prawn_rails_test.rb +58 -17
  71. data/test/prawn_rails_test.rb +19 -2
  72. data/test/test_helper.rb +10 -0
  73. metadata +185 -52
  74. data/lib/prawn-rails/load_prawn_plugins.rb +0 -11
  75. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/-E/-EGHXi_ULbX3JP7NLAsVLUrIZgOg0HxdFnvlbmA7DCA.cache +0 -1
  76. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/Bl/BlRucSL6BNAMZvHs4UVilikqNOKnbCHSGHIQRgtKvFQ.cache +0 -1
  77. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/dZ/dZLyjSvZKmLRvanBa3SmJ58gtb_fQaHMzS1A04p2x_4.cache +0 -1
  78. data/test/dummy_app/tmp/cache/assets/sprockets/v3.0/mn/mnaHTtsBvdmAbdqsorI0KqFoT2eQIhgDVER_He3q2HU.cache +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 750f17f633f0a7d1dbc8114142479708d88029db
4
- data.tar.gz: ad0bfd62383c511bf82996dd64de18078450a03b
2
+ SHA256:
3
+ metadata.gz: 2cc8b0b4dcec01b053fcc3dc156456f243320e5e7b1885486d0de6c6ec55f574
4
+ data.tar.gz: 79ea17f3222b3484e27551f2f7c20a48c964d3d0897340f9bb162b22325a8044
5
5
  SHA512:
6
- metadata.gz: 9b76d0d73b1a168b9fdebe56766b5d4e743df421cc4f5cb2214f7647eb34fb75ecf8834d34f418d4839228e7cdc69a3b8a339bc085db322d31fbbbe8975c1675
7
- data.tar.gz: 2c7c30748577994849c8c7c19dddc26fb05c69a7beb300a0a0635f7bc3e4c7ca912a96a4d02d0d86dbce0b9e9a98386f8fee13e94f80601f1b68cd5c5bccc87e
6
+ metadata.gz: cc3df95c50ee59e14fa1ab357cf01c6112a8d73c4ad799bc32767aa8483fb494562f2cd2a6b9ea8c5141c70cd0db4c9c72862dbce8beeb6d5a801a72e197d579
7
+ data.tar.gz: b696d243feb7d6323296367a3914efa70c740aed86589155cb522d417b917e9d229a0dcc28534b01ea840b5d60c7ef75d15671d005d5ef941cc18eff38d6424b
data/CHANGELOG.md CHANGED
@@ -1,17 +1,36 @@
1
1
  # Changelog
2
2
 
3
- * `Unreleased`
3
+ * `Unreleased` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.4.1...master)
4
4
  - Nothing yet
5
5
 
6
- * `v1.1.0`
7
- - [#29](https://github.com/cortiz/prawn-rails/pull/29) - Require all installed prawn extensions
6
+ * `Unreleased` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.4.0...v1.4.1)
7
+ - [7575606](https://github.com/cortiz/prawn-rails/commit/7575606) - Fix bug in v1.4.0, where PDF's wouldnt open as `inline` within the browser. Problem was due to incomplete switch to Railsties from [PR #41](https://github.com/cortiz/prawn-rails/pull/41)
8
+
9
+ * `v1.4.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.3.0...v1.4.0)
10
+ - [PR #41](https://github.com/cortiz/prawn-rails/pull/41) - Depend on `railsties` instead of `rails` gem to avoid pulling in unnecessary dependencies such as action_cable, etc.
11
+
12
+ * `v1.3.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.2.1...v1.3.0)
13
+ - [PR #40](https://github.com/cortiz/prawn-rails/pull/40) - Add `:filename` and `:disposition` options for `prawn_document
14
+ - [PR #40](https://github.com/cortiz/prawn-rails/pull/40) - Do not override existing`Content-Disposition` headers
15
+
16
+ * `v1.2.1` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.2.0...v1.2.1)
17
+ - [PR #39](https://github.com/cortiz/prawn-rails/pull/39) - Fix Rails 6 deprecation warning for single arity template handlers
18
+ - Remove unnecessary option logic from `prawn_document` method
19
+
20
+ * `v1.2.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.1.0...v1.2.0)
21
+ - [PR #31](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading. This removes all changes made in PR #29 and should behave much more appropriately now.
22
+ - [Undo PR #29](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading
23
+ - [PR #30](https://github.com/cortiz/prawn-rails/pull/30) - Allow rendering in ActionMailer
24
+
25
+ * `v1.1.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.2...v1.1.0)
26
+ - [PR #29](https://github.com/cortiz/prawn-rails/pull/29) - Require all installed prawn extensions
8
27
  - Removed unnecessary `html_strip` helper method. If you were using this feature, instead use Rails built in `strip_tags(html_str)` or `ActionView::Base.full_sanitizer.sanitize(html_str)`
9
28
  - Add legitimate tests
10
29
 
11
- * `v1.0.1`
30
+ * `v1.0.1` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.0...v1.0.1)
12
31
  - Fix error when using `ActionController.render_to_string`
13
32
 
14
- * `v1.0.0`
33
+ * `v1.0.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.0...v0.1.1)
15
34
  - Support `@filename`
16
35
  - Set PDF Title metadata based on `@filename` if not specified
17
36
  - Fix for Ruby 1.9.3+
@@ -19,5 +38,5 @@
19
38
 
20
39
  * `v0.1.1`
21
40
  * `v0.1.0`
22
- * `v0.0.2`
41
+ * `v0.0.2`
23
42
  * `v0.0.1`
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
- # Prawn-Rails [![Gem Version](https://badge.fury.io/rb/prawn-rails.svg)](http://badge.fury.io/rb/prawn-rails)
2
- <a href='http://ko-fi.com/A552JBK' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
1
+ # Prawn-Rails
2
+ <a href="https://badge.fury.io/rb/prawn-rails" target="_blank"><img height="21" style='border:0px;height:21px;' border='0' src="https://badge.fury.io/rb/prawn-rails.svg" alt="Gem Version"></a>
3
+ <a href='https://github.com/cortiz/prawn-rails/actions' target='_blank'><img src="https://github.com/cortiz/prawn-rails/workflows/Tests/badge.svg" style="max-width:100%;" height='21' style='border:0px;height:21px;' border='0' alt="CI Status"></a>
4
+ <a href='https://rubygems.org/gems/prawn-rails' target='_blank'><img height='21' style='border:0px;height:21px;' src='https://ruby-gem-downloads-badge.herokuapp.com/prawn-rails?label=rubygems&type=total&total_label=downloads&color=brightgreen' border='0' alt='RubyGems Downloads' /></a>
5
+
3
6
 
4
7
  # Install
5
8
  ```ruby
@@ -9,7 +12,7 @@ gem 'prawn-rails'
9
12
  Note: `prawn` and `prawn-table` are dependencies of `prawn-rails` so there is no need to mention it in the projects Gemfile unless you want to use a specific version of either of those libraries.
10
13
 
11
14
  # Usage
12
- Create a view with `pdf` as format and `prawn` as handler so filename should look like `example.pdf.prawn`
15
+ Create a view with `pdf` as format and `prawn` as handler so filename should look like `example.pdf.prawn`.
13
16
 
14
17
  It provides a helper called `prawn_document` which builds a PrawnRails::Document with default options. You can override any options as you please. Example:
15
18
 
@@ -19,19 +22,41 @@ prawn_document do |pdf|
19
22
  end
20
23
  ```
21
24
 
22
- No need to call `pdf.render`, it is called by `prawn_document`
25
+ No need to call `pdf.render`, it is called by `prawn_document`.
26
+
27
+ You can customize the name of the generated PDF and the file's delivery format with the `:filename` and `:disposition` keys:
28
+
29
+ ```ruby
30
+ prawn_document(filename: "my-file.pdf", disposition: "attachment") do |pdf|
31
+ pdf.text "Direct download incoming!"
32
+ end
33
+ ```
34
+
35
+ You can also override the content disposition using the [`Content-Disposition` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#As_a_response_header_for_the_main_body). If you've already set this, `prawn-rails` will *not* override it. Here's an example of setting the header directly:
23
36
 
24
- If you want to customize the name of the file should a user try to save it, you can specify the filename in your action:
37
+ ```ruby
38
+ def download
39
+ respond_to do |format|
40
+ format.pdf do
41
+ headers["Content-Disposition"] = "attachment; filename=\"charts-#{Time.now.to_i}.pdf\""
42
+ end
43
+ end
44
+ end
45
+ ```
46
+
47
+ You can also override the file's name from the controller via `@filename`:
25
48
 
26
49
  ```ruby
27
50
  def show
28
- @filename = 'my_report.pdf'
51
+ @filename = "my_report.pdf"
29
52
  end
30
53
  ```
31
54
 
55
+ If no options are given, the file's name will match to your browser's default and the delivery format will default to `inline`.
56
+
32
57
  # Default configuration
33
58
 
34
- Add a `prawn-rails.rb` config to your Rails app under `config/initializers` like this
59
+ Add a `prawn-rails.rb` config to your Rails app under `config/initializers` like this:
35
60
 
36
61
  ```ruby
37
62
  PrawnRails.config do |config|
@@ -41,11 +66,11 @@ PrawnRails.config do |config|
41
66
  end
42
67
  ```
43
68
 
44
- Please note that these are the defaults.
69
+ Please note that these are the defaults.
45
70
 
46
- For a list of all available options: [http://www.rubydoc.info/gems/prawn/Prawn%2FDocument:initialize](http://www.rubydoc.info/gems/prawn/Prawn%2FDocument:initialize).
71
+ For a list of all available options: [http://www.rubydoc.info/gems/prawn/Prawn%2FDocument:initialize](http://www.rubydoc.info/gems/prawn/Prawn%2FDocument:initialize).
47
72
 
48
- For a list of all metadata the the `:info` option supports, please see [https://github.com/prawnpdf/prawn/blob/master/manual/document_and_page_options/metadata.rb](https://github.com/prawnpdf/prawn/blob/master/manual/document_and_page_options/metadata.rb)
73
+ For a list of all metadata the the `:info` option supports, please see [https://github.com/prawnpdf/prawn/blob/master/manual/document_and_page_options/metadata.rb](https://github.com/prawnpdf/prawn/blob/master/manual/document_and_page_options/metadata.rb).
49
74
 
50
75
  If `skip_page_creation` is set to true then you have to create the first page yourself. Example:
51
76
 
@@ -59,7 +84,7 @@ pdf.start_new_page size: "A4", page_layout: :portrait
59
84
 
60
85
  #### Hello World
61
86
 
62
- ```ruby
87
+ ```ruby
63
88
  # hello.pdf.prawn
64
89
 
65
90
  prawn_document do |pdf|
@@ -93,5 +118,3 @@ end
93
118
  Maintained by Weston Ganger - @westonganger
94
119
 
95
120
  Created by Carlos Ortiz - @cortiz
96
-
97
- <a href='http://ko-fi.com/A552JBK' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
data/lib/prawn-rails.rb CHANGED
@@ -1,6 +1,6 @@
1
- require "prawn-rails/config"
2
- require "prawn-rails/engine"
3
1
  require "prawn-rails/version"
2
+ require "prawn-rails/config"
3
+ require "prawn-rails/railtie"
4
4
 
5
5
  module PrawnRails
6
6
  end
@@ -1,18 +1,23 @@
1
1
  require 'prawn'
2
- require 'prawn-rails/load_prawn_plugins'
2
+ require 'prawn/table'
3
3
 
4
4
  module PrawnRails
5
5
 
6
6
  # This derives from Prawn::Document in order to override defaults.
7
7
  # Note that the Prawn::Document behaviour itself shouldn't be changed.
8
8
  class Document < Prawn::Document
9
- def initialize(opts = {})
9
+ def self.extensions
10
+ Prawn::Document.extensions
11
+ end
12
+
13
+ def initialize(options = {})
10
14
  if PrawnRails.config.respond_to?(:to_h)
11
- default = PrawnRails.config.to_h.merge(opts)
15
+ options.reverse_merge!(PrawnRails.config.to_h)
12
16
  else
13
- default = PrawnRails.config.marshal_dump.merge(opts)
17
+ options.reverse_merge!(PrawnRails.config.marshal_dump)
14
18
  end
15
- super(default)
19
+
20
+ super(options)
16
21
  end
17
22
 
18
23
  # Typically text expects a string. But Rails views have this interesting concept that they implicitly call `to_s` on all the variables before rendering. So, passing an integer to text fails:
@@ -4,24 +4,35 @@ module PrawnRails
4
4
  module RailsHelper
5
5
 
6
6
  def prawn_document(options={})
7
- options.reverse_merge!({
8
- page_layout: PrawnRails.config.page_layout,
9
- page_size: PrawnRails.config.page_size,
10
- info: {
11
- Title: @filename.sub(/\.(p|P)(d|D)(f|F)$/, '')
12
- }
13
- })
7
+ @filename ||= options[:filename]
14
8
 
15
- if PrawnRails.config.skip_page_creation
16
- options.reverse_merge!(skip_page_creation: true)
17
- end
9
+ options.reverse_merge!(get_metadata)
18
10
 
19
11
  pdf = PrawnRails::Document.new(options)
20
12
 
13
+ # Ignore headers when we're not rendering from an ActionController context.
14
+ if defined?(controller) && controller.respond_to?(:response) && !controller.response.nil?
15
+ disposition = options[:disposition] || "inline"
16
+ disposition += "; filename=\"#{@filename}\"" if @filename
17
+
18
+ # Don't override 'Content-Disposition' if we've chosen to set it elsewhere.
19
+ controller.response.headers['Content-Disposition'] ||= disposition
20
+ end
21
+
21
22
  yield pdf if block_given?
22
23
 
23
24
  pdf.render
24
25
  end
25
26
 
27
+ def get_metadata
28
+ return {} unless @filename
29
+
30
+ {
31
+ info: {
32
+ Title: @filename.sub(/\.pdf$/i, '')
33
+ }
34
+ }
35
+ end
36
+
26
37
  end
27
38
  end
@@ -3,7 +3,7 @@ require "prawn-rails/rails_helper"
3
3
  require "prawn-rails/renderer"
4
4
 
5
5
  module PrawnRails
6
- class Engine < Rails::Engine
6
+ class Railtie < Rails::Railtie
7
7
  ActionView::Base.send(:include, PrawnRails::RailsHelper)
8
8
  ActionView::Template.register_template_handler(:prawn, PrawnRails::Renderer)
9
9
 
@@ -3,17 +3,8 @@ require "prawn-rails/document"
3
3
  module PrawnRails
4
4
  class Renderer
5
5
 
6
- ### WARNING: BE VERY CAREFUL IF EDITING THIS METHOD
7
- def self.call(template)
8
- %{
9
- @filename ||= "\#{controller.action_name}.pdf"
10
-
11
- unless controller.response.nil?
12
- controller.response.headers['Content-Disposition'] = "inline; filename=\\\"\#{@filename}\\\""
13
- end
14
-
15
- #{template.source.strip}
16
- }
6
+ def self.call(template, source = nil)
7
+ (source || template.source).strip
17
8
  end
18
9
 
19
10
  end
@@ -1,3 +1,3 @@
1
1
  module PrawnRails
2
- VERSION = "1.1.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
@@ -1,5 +1,5 @@
1
1
  class ReportsController < ApplicationController
2
-
2
+
3
3
  def sample
4
4
  @items = [
5
5
  {name: "Hello"},
@@ -14,5 +14,24 @@ class ReportsController < ApplicationController
14
14
  [7,8,9],
15
15
  ]
16
16
  end
17
-
17
+
18
+ def custom_filename
19
+ end
20
+
21
+ def custom_disposition
22
+ end
23
+
24
+ def custom
25
+ end
26
+
27
+ def ivar_filename
28
+ @filename = "ivar-filename.pdf"
29
+ render :custom
30
+ end
31
+
32
+ def custom_headers
33
+ headers['Content-Disposition'] = "attachment;filename=\"custom-headers.pdf\""
34
+ render :custom
35
+ end
36
+
18
37
  end
@@ -0,0 +1,18 @@
1
+ class ReportsMailer < ActionMailer::Base
2
+ def send_report
3
+ @items = [
4
+ {name: "Hello"},
5
+ {name: "World"},
6
+ ]
7
+
8
+ attachments["report.pdf"] = {
9
+ mime_type: "application/pdf",
10
+ content: render_to_string("reports/sample", formats: [:pdf]),
11
+ }
12
+
13
+ mail({
14
+ to: "user@example.com",
15
+ subject: "Reports",
16
+ })
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ prawn_document(filename: "from-options.pdf", disposition: "attachment") do |pdf|
2
+ pdf.text "Hello World!"
3
+ end
@@ -0,0 +1,3 @@
1
+ prawn_document(disposition: "attachment") do |pdf|
2
+ pdf.text "Hello World!"
3
+ end
@@ -0,0 +1,3 @@
1
+ prawn_document(filename: "from-options.pdf") do |pdf|
2
+ pdf.text "Hello World!"
3
+ end
@@ -4,10 +4,6 @@ require 'rails/all'
4
4
 
5
5
  Bundler.require
6
6
 
7
- silence_warnings do
8
- require 'prawn-svg'
9
- end
10
-
11
7
  require "prawn-rails"
12
8
 
13
9
  module Dummy
@@ -52,12 +48,5 @@ module Dummy
52
48
  config.generators.helper = false
53
49
  config.generators.stylesheets = false
54
50
  config.generators.javascripts = false
55
-
56
- if ActiveRecord.respond_to?(:gem_version)
57
- gem_version = ActiveRecord.gem_version
58
- if gem_version >= Gem::Version.new("5.2")
59
- config.active_record.sqlite3.represent_boolean_as_integer = true
60
- end
61
- end
62
51
  end
63
52
  end
@@ -1,4 +1,9 @@
1
1
  Dummy::Application.routes.draw do
2
+ get "reports/custom"
3
+ get "reports/custom_disposition"
4
+ get "reports/custom_filename"
5
+ get "reports/custom_headers"
6
+ get "reports/ivar_filename"
2
7
  get "reports/sample"
3
8
  get "reports/table"
4
9
  end
@@ -1,2191 +1,12 @@
1
1
   (0.1ms) begin transaction
2
- ----------------------------------------
3
- PdfControllerTest: test_should_get_a_pdf
4
- ----------------------------------------
5
- Processing by PdfController#render_pdf as HTML
6
- Rendering pdf/render_pdf.pdf.prawn
7
- Rendered pdf/render_pdf.pdf.prawn (62.3ms)
8
- Completed 200 OK in 67ms (Views: 67.0ms | ActiveRecord: 0.0ms)
9
-  (0.2ms) rollback transaction
10
-  (0.1ms) begin transaction
11
- -------------------------------
12
- PrawnRailsTest: test_html_strip
13
- -------------------------------
14
-  (0.1ms) rollback transaction
15
-  (0.1ms) begin transaction
16
- ----------------------------------------
17
- PdfControllerTest: test_should_get_a_pdf
18
- ----------------------------------------
19
- Processing by PdfController#render_pdf as HTML
20
- Rendering pdf/render_pdf.pdf.prawn
21
- Rendered pdf/render_pdf.pdf.prawn (50.3ms)
22
- Completed 200 OK in 55ms (Views: 54.7ms | ActiveRecord: 0.0ms)
23
-  (0.1ms) rollback transaction
24
-  (0.0ms) begin transaction
25
- -------------------------------
26
- PrawnRailsTest: test_html_strip
27
- -------------------------------
28
-  (0.1ms) rollback transaction
29
-  (0.0ms) begin transaction
30
- -----------------------------------------
31
- RenderToStringTest: test_should_get_a_pdf
32
- -----------------------------------------
33
-  (0.0ms) rollback transaction
34
-  (0.1ms) begin transaction
35
- -------------------------------
36
- PrawnRailsTest: test_html_strip
37
- -------------------------------
38
-  (0.1ms) rollback transaction
39
-  (0.1ms) begin transaction
40
- ----------------------------------------
41
- PdfControllerTest: test_should_get_a_pdf
42
- ----------------------------------------
43
- Processing by PdfController#render_pdf as HTML
44
- Rendering pdf/render_pdf.pdf.prawn
45
- Rendered pdf/render_pdf.pdf.prawn (46.3ms)
46
- Completed 200 OK in 51ms (Views: 50.6ms | ActiveRecord: 0.0ms)
47
-  (0.1ms) rollback transaction
48
-  (0.1ms) begin transaction
49
- ------------------------------------------------
50
- RenderToStringTest: test_should_render_to_string
51
- ------------------------------------------------
52
- Rendering pdf/render_pdf.html.erb within layouts/application
53
- Rendered pdf/render_pdf.html.erb within layouts/application (1.2ms)
54
-  (0.1ms) rollback transaction
55
-  (0.1ms) begin transaction
56
- ------------------------------------------------
57
- RenderToStringTest: test_should_render_to_string
58
- ------------------------------------------------
59
- Rendering pdf/render_pdf.html.erb within layouts/application
60
- Rendered pdf/render_pdf.html.erb within layouts/application (0.8ms)
61
-  (0.1ms) rollback transaction
62
-  (0.1ms) begin transaction
63
- -------------------------------
64
- PrawnRailsTest: test_html_strip
65
- -------------------------------
66
-  (0.1ms) rollback transaction
67
-  (0.1ms) begin transaction
68
- ----------------------------------------
69
- PdfControllerTest: test_should_get_a_pdf
70
- ----------------------------------------
71
- Processing by PdfController#render_pdf as HTML
72
- Rendering pdf/render_pdf.pdf.prawn
73
- Rendered pdf/render_pdf.pdf.prawn (45.5ms)
74
- Completed 200 OK in 48ms (Views: 47.6ms | ActiveRecord: 0.0ms)
75
-  (0.1ms) rollback transaction
76
-  (0.1ms) begin transaction
77
- ------------------------------------------------
78
- RenderToStringTest: test_should_render_to_string
79
- ------------------------------------------------
80
- Rendering pdf/render_pdf.html.erb within layouts/application
81
- Rendered pdf/render_pdf.html.erb within layouts/application (0.8ms)
82
-  (0.1ms) rollback transaction
83
-  (0.1ms) begin transaction
84
- ----------------------------------------
85
- PdfControllerTest: test_should_get_a_pdf
86
- ----------------------------------------
87
- Processing by PdfController#render_pdf as HTML
88
- Rendering pdf/render_pdf.pdf.prawn
89
- Rendered pdf/render_pdf.pdf.prawn (45.4ms)
90
- Completed 200 OK in 48ms (Views: 47.4ms | ActiveRecord: 0.0ms)
91
-  (0.1ms) rollback transaction
92
-  (0.1ms) begin transaction
93
- -------------------------------
94
- PrawnRailsTest: test_html_strip
95
- -------------------------------
96
-  (0.1ms) rollback transaction
97
-  (0.1ms) begin transaction
98
- -------------------------------
99
- PrawnRailsTest: test_html_strip
100
- -------------------------------
101
-  (0.1ms) rollback transaction
102
-  (0.1ms) begin transaction
103
- ----------------------------------------
104
- PdfControllerTest: test_should_get_a_pdf
105
- ----------------------------------------
106
- Processing by PdfController#render_pdf as HTML
107
- Rendering pdf/render_pdf.pdf.prawn
108
- Rendered pdf/render_pdf.pdf.prawn (51.3ms)
109
- Completed 200 OK in 56ms (Views: 55.4ms | ActiveRecord: 0.0ms)
110
-  (0.2ms) rollback transaction
111
-  (0.1ms) begin transaction
112
- ------------------------------------------------
113
- RenderToStringTest: test_should_render_to_string
114
- ------------------------------------------------
115
- Rendering pdf/render_pdf.html.erb within layouts/application
116
- Rendered pdf/render_pdf.html.erb within layouts/application (0.9ms)
117
-  (0.1ms) rollback transaction
118
-  (0.1ms) begin transaction
119
- -------------------------------
120
- PrawnRailsTest: test_html_strip
121
- -------------------------------
122
-  (0.1ms) rollback transaction
123
-  (0.1ms) begin transaction
124
- ------------------------------------------------
125
- RenderToStringTest: test_should_render_to_string
126
- ------------------------------------------------
127
- Rendering pdf/render_pdf.html.erb within layouts/application
128
- Rendered pdf/render_pdf.html.erb within layouts/application (0.9ms)
129
-  (0.1ms) rollback transaction
130
-  (0.1ms) begin transaction
131
- ----------------------------------------
132
- PdfControllerTest: test_should_get_a_pdf
133
- ----------------------------------------
134
- Processing by PdfController#render_pdf as HTML
135
- Rendering pdf/render_pdf.pdf.prawn
136
- Rendered pdf/render_pdf.pdf.prawn (45.2ms)
137
- Completed 200 OK in 47ms (Views: 47.2ms | ActiveRecord: 0.0ms)
138
-  (0.1ms) rollback transaction
139
-  (0.1ms) begin transaction
140
- ----------------------------------------
141
- PdfControllerTest: test_should_get_a_pdf
142
- ----------------------------------------
143
- Processing by PdfController#render_pdf as HTML
144
- Rendering pdf/render_pdf.pdf.prawn
145
- Rendered pdf/render_pdf.pdf.prawn (0.6ms)
146
- Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
147
-  (0.1ms) rollback transaction
148
-  (0.1ms) begin transaction
149
- ------------------------------------------------
150
- RenderToStringTest: test_should_render_to_string
151
- ------------------------------------------------
152
- Rendering pdf/render_pdf.html.erb within layouts/application
153
- Rendered pdf/render_pdf.html.erb within layouts/application (0.8ms)
154
-  (0.1ms) rollback transaction
155
-  (0.1ms) begin transaction
156
- -------------------------------
157
- PrawnRailsTest: test_html_strip
158
- -------------------------------
159
-  (0.1ms) rollback transaction
160
-  (0.1ms) begin transaction
161
- -------------------------------
162
- PrawnRailsTest: test_html_strip
163
- -------------------------------
164
-  (0.0ms) rollback transaction
165
-  (0.0ms) begin transaction
166
- ----------------------------------------
167
- PdfControllerTest: test_should_get_a_pdf
168
- ----------------------------------------
169
- Processing by PdfController#render_pdf as HTML
170
- Rendering pdf/render_pdf.pdf.prawn
171
- Rendered pdf/render_pdf.pdf.prawn (46.4ms)
172
- Completed 200 OK in 50ms (Views: 50.0ms | ActiveRecord: 0.0ms)
173
-  (0.1ms) rollback transaction
174
-  (0.0ms) begin transaction
175
- ------------------------------------------------
176
- RenderToStringTest: test_should_render_to_string
177
- ------------------------------------------------
178
- Rendering pdf/render_pdf.html.erb within layouts/application
179
- Rendered pdf/render_pdf.html.erb within layouts/application (0.8ms)
180
-  (0.1ms) rollback transaction
181
-  (0.2ms) begin transaction
182
- ------------------------------------------------
183
- RenderToStringTest: test_should_render_to_string
184
- ------------------------------------------------
185
- Rendering pdf/render_pdf.pdf.prawn
186
- Rendered pdf/render_pdf.pdf.prawn (45.9ms)
187
-  (0.1ms) rollback transaction
188
-  (0.0ms) begin transaction
189
- ----------------------------------------
190
- PdfControllerTest: test_should_get_a_pdf
191
- ----------------------------------------
192
- Processing by PdfController#render_pdf as HTML
193
- Rendering pdf/render_pdf.pdf.prawn
194
- Rendered pdf/render_pdf.pdf.prawn (12.3ms)
195
- Completed 200 OK in 13ms (Views: 13.2ms | ActiveRecord: 0.0ms)
196
-  (0.1ms) rollback transaction
197
-  (0.0ms) begin transaction
198
- -------------------------------
199
- PrawnRailsTest: test_html_strip
200
- -------------------------------
201
-  (0.0ms) rollback transaction
202
-  (0.1ms) begin transaction
203
- ------------------------------------------------
204
- RenderToStringTest: test_should_render_to_string
205
- ------------------------------------------------
206
- Rendering pdf/render_pdf.pdf.prawn
207
- Rendered pdf/render_pdf.pdf.prawn (50.9ms)
208
-  (0.1ms) rollback transaction
209
-  (0.1ms) begin transaction
210
- -------------------------------
211
- PrawnRailsTest: test_html_strip
212
- -------------------------------
213
-  (0.1ms) rollback transaction
214
-  (0.1ms) begin transaction
215
- ----------------------------------------
216
- PdfControllerTest: test_should_get_a_pdf
217
- ----------------------------------------
218
- Processing by PdfController#render_pdf as HTML
219
- Rendering pdf/render_pdf.pdf.prawn
220
- Rendered pdf/render_pdf.pdf.prawn (15.3ms)
221
- Completed 200 OK in 17ms (Views: 17.0ms | ActiveRecord: 0.0ms)
222
-  (0.2ms) rollback transaction
223
-  (0.1ms) begin transaction
224
- -------------------------------
225
- PrawnRailsTest: test_html_strip
226
- -------------------------------
227
-  (0.1ms) rollback transaction
228
-  (0.1ms) begin transaction
229
- ------------------------------------------------
230
- RenderToStringTest: test_should_render_to_string
231
- ------------------------------------------------
232
- Rendering pdf/render_pdf.pdf.prawn
233
- Rendered pdf/render_pdf.pdf.prawn (80.7ms)
234
-  (0.1ms) rollback transaction
235
-  (0.1ms) begin transaction
236
- ----------------------------------------
237
- PdfControllerTest: test_should_get_a_pdf
238
- ----------------------------------------
239
- Processing by PdfController#render_pdf as HTML
240
- Rendering pdf/render_pdf.pdf.prawn
241
- Rendered pdf/render_pdf.pdf.prawn (14.7ms)
242
- Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
243
-  (0.2ms) rollback transaction
244
-  (0.1ms) begin transaction
245
- ------------------------------------------------
246
- RenderToStringTest: test_should_render_to_string
247
- ------------------------------------------------
248
- Rendering pdf/render_pdf.pdf.prawn
249
- Rendered pdf/render_pdf.pdf.prawn (50.8ms)
250
-  (0.1ms) rollback transaction
251
-  (0.1ms) begin transaction
252
- ----------------------------------------
253
- PdfControllerTest: test_should_get_a_pdf
254
- ----------------------------------------
255
- Processing by PdfController#render_pdf as HTML
256
- Rendering pdf/render_pdf.pdf.prawn
257
- Rendered pdf/render_pdf.pdf.prawn (15.2ms)
258
- Completed 200 OK in 17ms (Views: 16.9ms | ActiveRecord: 0.0ms)
259
-  (0.2ms) rollback transaction
260
-  (0.1ms) begin transaction
261
- -------------------------------
262
- PrawnRailsTest: test_html_strip
263
- -------------------------------
264
-  (0.1ms) rollback transaction
265
-  (0.1ms) begin transaction
266
- ----------------------------------------
267
- PdfControllerTest: test_should_get_a_pdf
268
- ----------------------------------------
269
- Processing by PdfController#render_pdf as HTML
270
- Rendering pdf/render_pdf.pdf.prawn
271
- Rendered pdf/render_pdf.pdf.prawn (51.8ms)
272
- Completed 200 OK in 56ms (Views: 55.6ms | ActiveRecord: 0.0ms)
273
-  (0.2ms) rollback transaction
274
-  (0.1ms) begin transaction
275
- ------------------------------------------------
276
- RenderToStringTest: test_should_render_to_string
277
- ------------------------------------------------
278
- Rendering pdf/render_pdf.pdf.prawn
279
- Rendered pdf/render_pdf.pdf.prawn (15.9ms)
280
-  (0.1ms) rollback transaction
281
-  (0.1ms) begin transaction
282
- -------------------------------
283
- PrawnRailsTest: test_html_strip
284
- -------------------------------
285
-  (0.1ms) rollback transaction
286
-  (0.1ms) begin transaction
287
- ------------------------------------------------
288
- RenderToStringTest: test_should_render_to_string
289
- ------------------------------------------------
290
- Rendering pdf/render_pdf.pdf.prawn
291
- Rendered pdf/render_pdf.pdf.prawn (38.6ms)
292
-  (0.1ms) rollback transaction
293
-  (0.0ms) begin transaction
294
- ----------------------------------------
295
- PdfControllerTest: test_should_get_a_pdf
296
- ----------------------------------------
297
- Processing by PdfController#render_pdf as HTML
298
- Rendering pdf/render_pdf.pdf.prawn
299
- Rendered pdf/render_pdf.pdf.prawn (15.2ms)
300
- Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.0ms)
301
-  (0.2ms) rollback transaction
302
-  (0.0ms) begin transaction
303
- -------------------------------
304
- PrawnRailsTest: test_html_strip
305
- -------------------------------
306
-  (0.0ms) rollback transaction
307
-  (0.1ms) begin transaction
308
- -------------------------------
309
- PrawnRailsTest: test_html_strip
310
- -------------------------------
311
-  (0.1ms) rollback transaction
312
-  (0.1ms) begin transaction
313
- ------------------------------------------------
314
- RenderToStringTest: test_should_render_to_string
315
- ------------------------------------------------
316
- Rendering pdf/render_pdf.pdf.prawn
317
- Rendered pdf/render_pdf.pdf.prawn (41.5ms)
318
-  (0.1ms) rollback transaction
319
-  (0.1ms) begin transaction
320
- ----------------------------------------
321
- PdfControllerTest: test_should_get_a_pdf
322
- ----------------------------------------
323
- Processing by PdfController#render_pdf as HTML
324
- Rendering pdf/render_pdf.pdf.prawn
325
- Rendered pdf/render_pdf.pdf.prawn (18.7ms)
326
- Completed 200 OK in 21ms (Views: 20.5ms | ActiveRecord: 0.0ms)
327
-  (0.2ms) rollback transaction
328
-  (0.1ms) begin transaction
329
- -------------------------------
330
- PrawnRailsTest: test_html_strip
331
- -------------------------------
332
-  (0.1ms) rollback transaction
333
-  (0.1ms) begin transaction
334
- ----------------------------------------
335
- PdfControllerTest: test_should_get_a_pdf
336
- ----------------------------------------
337
- Processing by PdfController#render_pdf as HTML
338
- Rendering pdf/render_pdf.pdf.prawn
339
- Rendered pdf/render_pdf.pdf.prawn (68.9ms)
340
- Completed 200 OK in 73ms (Views: 72.7ms | ActiveRecord: 0.0ms)
341
-  (0.1ms) rollback transaction
342
-  (0.1ms) begin transaction
343
- ------------------------------------------------
344
- RenderToStringTest: test_should_render_to_string
345
- ------------------------------------------------
346
- Rendering pdf/render_pdf.pdf.prawn
347
- Rendered pdf/render_pdf.pdf.prawn (15.2ms)
348
-  (0.1ms) rollback transaction
349
-  (0.1ms) begin transaction
350
- ----------------------------------------
351
- PdfControllerTest: test_should_get_a_pdf
352
- ----------------------------------------
353
- Processing by PdfController#render_pdf as HTML
354
- Rendering pdf/render_pdf.pdf.prawn
355
- Rendered pdf/render_pdf.pdf.prawn (51.4ms)
356
- Completed 200 OK in 56ms (Views: 55.2ms | ActiveRecord: 0.0ms)
357
-  (0.2ms) rollback transaction
358
-  (0.1ms) begin transaction
359
- -------------------------------
360
- PrawnRailsTest: test_html_strip
361
- -------------------------------
362
-  (0.1ms) rollback transaction
363
-  (0.1ms) begin transaction
364
- ------------------------------------------------
365
- RenderToStringTest: test_should_render_to_string
366
- ------------------------------------------------
367
- Rendering pdf/render_pdf.pdf.prawn
368
- Rendered pdf/render_pdf.pdf.prawn (15.8ms)
369
-  (0.1ms) rollback transaction
370
-  (0.1ms) begin transaction
371
- ------------------------------------------------
372
- RenderToStringTest: test_should_render_to_string
373
- ------------------------------------------------
374
- Rendering pdf/render_pdf.pdf.prawn
375
- Rendered pdf/render_pdf.pdf.prawn (45.9ms)
376
-  (0.1ms) rollback transaction
377
-  (0.0ms) begin transaction
378
- -------------------------------
379
- PrawnRailsTest: test_html_strip
380
- -------------------------------
381
-  (0.0ms) rollback transaction
382
-  (0.0ms) begin transaction
383
- ----------------------------------------
384
- PdfControllerTest: test_should_get_a_pdf
385
- ----------------------------------------
386
- Processing by PdfController#render_pdf as HTML
387
- Rendering pdf/render_pdf.pdf.prawn
388
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
389
- Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)
390
-  (0.1ms) rollback transaction
391
-  (0.1ms) begin transaction
392
- ------------------------------------------------
393
- RenderToStringTest: test_should_render_to_string
394
- ------------------------------------------------
395
- Rendering pdf/render_pdf.pdf.prawn
396
- Rendered pdf/render_pdf.pdf.prawn (94.9ms)
397
-  (0.1ms) rollback transaction
398
-  (0.0ms) begin transaction
399
- -------------------------------
400
- PrawnRailsTest: test_html_strip
401
- -------------------------------
402
-  (0.0ms) rollback transaction
403
-  (0.0ms) begin transaction
404
- ----------------------------------------
405
- PdfControllerTest: test_should_get_a_pdf
406
- ----------------------------------------
407
- Processing by PdfController#render_pdf as HTML
408
- Rendering pdf/render_pdf.pdf.prawn
409
- Rendered pdf/render_pdf.pdf.prawn (12.4ms)
410
- Completed 200 OK in 14ms (Views: 14.0ms | ActiveRecord: 0.0ms)
411
-  (0.1ms) rollback transaction
412
-  (0.1ms) begin transaction
413
- ------------------------------------------------
414
- RenderToStringTest: test_should_render_to_string
415
- ------------------------------------------------
416
- Rendering pdf/render_pdf.pdf.prawn
417
- Rendered pdf/render_pdf.pdf.prawn (86.2ms)
418
-  (0.1ms) rollback transaction
419
-  (0.0ms) begin transaction
420
- ----------------------------------------
421
- PdfControllerTest: test_should_get_a_pdf
422
- ----------------------------------------
423
- Processing by PdfController#render_pdf as HTML
424
- Rendering pdf/render_pdf.pdf.prawn
425
- Rendered pdf/render_pdf.pdf.prawn (12.5ms)
426
- Completed 200 OK in 14ms (Views: 14.1ms | ActiveRecord: 0.0ms)
427
-  (0.2ms) rollback transaction
428
-  (0.0ms) begin transaction
429
- -------------------------------
430
- PrawnRailsTest: test_html_strip
431
- -------------------------------
432
-  (0.0ms) rollback transaction
433
-  (0.1ms) begin transaction
434
- -------------------------------
435
- PrawnRailsTest: test_html_strip
436
- -------------------------------
437
-  (0.0ms) rollback transaction
438
-  (0.0ms) begin transaction
439
- ------------------------------------------------
440
- RenderToStringTest: test_should_render_to_string
441
- ------------------------------------------------
442
- Rendering pdf/render_pdf.pdf.prawn
443
- Rendered pdf/render_pdf.pdf.prawn (65.9ms)
444
-  (0.1ms) rollback transaction
445
-  (0.7ms) begin transaction
446
- ----------------------------------------
447
- PdfControllerTest: test_should_get_a_pdf
448
- ----------------------------------------
449
- Processing by PdfController#render_pdf as HTML
450
- Rendering pdf/render_pdf.pdf.prawn
451
- Rendered pdf/render_pdf.pdf.prawn (33.3ms)
452
- Completed 200 OK in 36ms (Views: 35.7ms | ActiveRecord: 0.0ms)
453
-  (0.1ms) rollback transaction
454
-  (0.1ms) begin transaction
455
- -------------------------------
456
- PrawnRailsTest: test_html_strip
457
- -------------------------------
458
-  (0.1ms) rollback transaction
459
-  (0.0ms) begin transaction
460
- ----------------------------------------
461
- PdfControllerTest: test_should_get_a_pdf
462
- ----------------------------------------
463
- Processing by PdfController#render_pdf as HTML
464
- Rendering pdf/render_pdf.pdf.prawn
465
- Rendered pdf/render_pdf.pdf.prawn (67.7ms)
466
- Completed 200 OK in 72ms (Views: 71.4ms | ActiveRecord: 0.0ms)
467
-  (0.1ms) rollback transaction
468
-  (0.0ms) begin transaction
469
- ------------------------------------------------
470
- RenderToStringTest: test_should_render_to_string
471
- ------------------------------------------------
472
- Rendering pdf/render_pdf.pdf.prawn
473
- Rendered pdf/render_pdf.pdf.prawn (11.9ms)
474
-  (0.1ms) rollback transaction
475
-  (0.2ms) begin transaction
476
- -------------------------------
477
- PrawnRailsTest: test_html_strip
478
- -------------------------------
479
-  (0.1ms) rollback transaction
480
-  (0.0ms) begin transaction
481
- ----------------------------------------
482
- PdfControllerTest: test_should_get_a_pdf
483
- ----------------------------------------
484
- Processing by PdfController#render_pdf as HTML
485
- Rendering pdf/render_pdf.pdf.prawn
486
- Rendered pdf/render_pdf.pdf.prawn (85.2ms)
487
- Completed 200 OK in 89ms (Views: 89.2ms | ActiveRecord: 0.0ms)
488
-  (0.1ms) rollback transaction
489
-  (0.1ms) begin transaction
490
- ------------------------------------------------
491
- RenderToStringTest: test_should_render_to_string
492
- ------------------------------------------------
493
- Rendering pdf/render_pdf.pdf.prawn
494
- Rendered pdf/render_pdf.pdf.prawn (17.0ms)
495
-  (0.1ms) rollback transaction
496
-  (0.1ms) begin transaction
497
- ----------------------------------------
498
- PdfControllerTest: test_should_get_a_pdf
499
- ----------------------------------------
500
- Processing by PdfController#render_pdf as HTML
501
- Rendering pdf/render_pdf.pdf.prawn
502
- Rendered pdf/render_pdf.pdf.prawn (83.3ms)
503
- Completed 200 OK in 88ms (Views: 87.3ms | ActiveRecord: 0.0ms)
504
-  (0.1ms) rollback transaction
505
-  (0.1ms) begin transaction
506
- -------------------------------
507
- PrawnRailsTest: test_html_strip
508
- -------------------------------
509
-  (0.0ms) rollback transaction
510
-  (0.0ms) begin transaction
511
- ------------------------------------------------
512
- RenderToStringTest: test_should_render_to_string
513
- ------------------------------------------------
514
- Rendering pdf/render_pdf.pdf.prawn
515
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
516
-  (0.1ms) rollback transaction
517
-  (0.1ms) begin transaction
518
- ----------------------------------------
519
- PdfControllerTest: test_should_get_a_pdf
520
- ----------------------------------------
521
- Processing by PdfController#render_pdf as HTML
522
- Rendering pdf/render_pdf.pdf.prawn
523
- Rendered pdf/render_pdf.pdf.prawn (84.3ms)
524
- Completed 200 OK in 89ms (Views: 88.5ms | ActiveRecord: 0.0ms)
525
-  (0.2ms) rollback transaction
526
-  (0.1ms) begin transaction
527
- -------------------------------
528
- PrawnRailsTest: test_html_strip
529
- -------------------------------
530
-  (0.0ms) rollback transaction
531
-  (0.0ms) begin transaction
532
- ------------------------------------------------
533
- RenderToStringTest: test_should_render_to_string
534
- ------------------------------------------------
535
- Rendering pdf/render_pdf.pdf.prawn
536
- Rendered pdf/render_pdf.pdf.prawn (11.8ms)
537
-  (0.1ms) rollback transaction
538
-  (0.1ms) begin transaction
539
- -------------------------------
540
- PrawnRailsTest: test_html_strip
541
- -------------------------------
542
-  (0.1ms) rollback transaction
543
-  (0.1ms) begin transaction
544
- ------------------------------------------------
545
- RenderToStringTest: test_should_render_to_string
546
- ------------------------------------------------
547
- Rendering pdf/render_pdf.pdf.prawn
548
- Rendered pdf/render_pdf.pdf.prawn (87.4ms)
549
-  (0.1ms) rollback transaction
550
-  (0.0ms) begin transaction
551
- ----------------------------------------
552
- PdfControllerTest: test_should_get_a_pdf
553
- ----------------------------------------
554
- Processing by PdfController#render_pdf as HTML
555
- Rendering pdf/render_pdf.pdf.prawn
556
- Rendered pdf/render_pdf.pdf.prawn (12.5ms)
557
- Completed 200 OK in 14ms (Views: 14.2ms | ActiveRecord: 0.0ms)
558
-  (0.1ms) rollback transaction
559
-  (0.1ms) begin transaction
560
- ----------------------------------------
561
- PdfControllerTest: test_should_get_a_pdf
562
- ----------------------------------------
563
- Processing by PdfController#render_pdf as HTML
564
- Rendering pdf/render_pdf.pdf.prawn
565
- Rendered pdf/render_pdf.pdf.prawn (42.8ms)
566
- Completed 200 OK in 47ms (Views: 46.4ms | ActiveRecord: 0.0ms)
567
-  (0.1ms) rollback transaction
568
-  (0.0ms) begin transaction
569
- ------------------------------------------------
570
- RenderToStringTest: test_should_render_to_string
571
- ------------------------------------------------
572
- Rendering pdf/render_pdf.pdf.prawn
573
- Rendered pdf/render_pdf.pdf.prawn (11.7ms)
574
-  (0.1ms) rollback transaction
575
-  (0.1ms) begin transaction
576
- -------------------------------
577
- PrawnRailsTest: test_html_strip
578
- -------------------------------
579
-  (0.0ms) rollback transaction
580
-  (0.1ms) begin transaction
581
- ------------------------------------------------
582
- RenderToStringTest: test_should_render_to_string
583
- ------------------------------------------------
584
- Rendering pdf/render_pdf.pdf.prawn
585
- Rendered pdf/render_pdf.pdf.prawn (41.5ms)
586
-  (0.1ms) rollback transaction
587
-  (0.0ms) begin transaction
588
- ----------------------------------------
589
- PdfControllerTest: test_should_get_a_pdf
590
- ----------------------------------------
591
- Processing by PdfController#render_pdf as HTML
592
- Rendering pdf/render_pdf.pdf.prawn
593
- Rendered pdf/render_pdf.pdf.prawn (12.1ms)
594
- Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.0ms)
595
-  (0.1ms) rollback transaction
596
-  (0.1ms) begin transaction
597
- -------------------------------
598
- PrawnRailsTest: test_html_strip
599
- -------------------------------
600
-  (0.0ms) rollback transaction
601
-  (0.1ms) begin transaction
602
- ------------------------------------------------
603
- RenderToStringTest: test_should_render_to_string
604
- ------------------------------------------------
605
- Rendering pdf/render_pdf.pdf.prawn
606
- Rendered pdf/render_pdf.pdf.prawn (43.1ms)
607
-  (0.1ms) rollback transaction
608
-  (0.0ms) begin transaction
609
- -------------------------------
610
- PrawnRailsTest: test_html_strip
611
- -------------------------------
612
-  (0.0ms) rollback transaction
613
-  (0.0ms) begin transaction
614
- ----------------------------------------
615
- PdfControllerTest: test_should_get_a_pdf
616
- ----------------------------------------
617
- Processing by PdfController#render_pdf as HTML
618
- Rendering pdf/render_pdf.pdf.prawn
619
- Rendered pdf/render_pdf.pdf.prawn (12.2ms)
620
- Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.0ms)
621
-  (0.2ms) rollback transaction
622
-  (0.1ms) begin transaction
623
- ----------------------------------------
624
- PdfControllerTest: test_should_get_a_pdf
625
- ----------------------------------------
626
- Processing by PdfController#render_pdf as HTML
627
- Rendering pdf/render_pdf.pdf.prawn
628
- Rendered pdf/render_pdf.pdf.prawn (42.4ms)
629
- Completed 200 OK in 47ms (Views: 46.2ms | ActiveRecord: 0.0ms)
630
-  (0.1ms) rollback transaction
631
-  (0.0ms) begin transaction
632
- -------------------------------
633
- PrawnRailsTest: test_html_strip
634
- -------------------------------
635
-  (0.0ms) rollback transaction
636
-  (0.0ms) begin transaction
637
- ------------------------------------------------
638
- RenderToStringTest: test_should_render_to_string
639
- ------------------------------------------------
640
- Rendering pdf/render_pdf.pdf.prawn
641
- Rendered pdf/render_pdf.pdf.prawn (11.7ms)
642
-  (0.1ms) rollback transaction
643
-  (0.1ms) begin transaction
644
- ----------------------------------------
645
- PdfControllerTest: test_should_get_a_pdf
646
- ----------------------------------------
647
- Processing by PdfController#render_pdf as HTML
648
- Rendering pdf/render_pdf.pdf.prawn
649
- Rendered pdf/render_pdf.pdf.prawn (77.5ms)
650
- Completed 200 OK in 81ms (Views: 81.1ms | ActiveRecord: 0.0ms)
651
-  (0.1ms) rollback transaction
652
-  (0.0ms) begin transaction
653
- -------------------------------
654
- PrawnRailsTest: test_html_strip
655
- -------------------------------
656
-  (0.1ms) rollback transaction
657
-  (0.0ms) begin transaction
658
- ------------------------------------------------
659
- RenderToStringTest: test_should_render_to_string
660
- ------------------------------------------------
661
- Rendering pdf/render_pdf.pdf.prawn
662
- Rendered pdf/render_pdf.pdf.prawn (12.2ms)
663
-  (0.1ms) rollback transaction
664
-  (0.1ms) begin transaction
665
- ----------------------------------------
666
- PdfControllerTest: test_should_get_a_pdf
667
- ----------------------------------------
668
- Processing by PdfController#render_pdf as HTML
669
- Rendering pdf/render_pdf.pdf.prawn
670
- Rendered pdf/render_pdf.pdf.prawn (53.5ms)
671
- Completed 200 OK in 61ms (Views: 60.5ms | ActiveRecord: 0.0ms)
672
-  (0.2ms) rollback transaction
673
-  (0.1ms) begin transaction
674
- ------------------------------------------------
675
- RenderToStringTest: test_should_render_to_string
676
- ------------------------------------------------
677
- Rendering pdf/render_pdf.pdf.prawn
678
- Rendered pdf/render_pdf.pdf.prawn (12.3ms)
679
-  (0.1ms) rollback transaction
680
-  (0.0ms) begin transaction
681
- -------------------------------
682
- PrawnRailsTest: test_html_strip
683
- -------------------------------
684
-  (0.0ms) rollback transaction
685
-  (0.1ms) begin transaction
686
- ----------------------------------------
687
- PdfControllerTest: test_should_get_a_pdf
688
- ----------------------------------------
689
- Processing by PdfController#render_pdf as HTML
690
- Rendering pdf/render_pdf.pdf.prawn
691
- Rendered pdf/render_pdf.pdf.prawn (42.9ms)
692
- Completed 200 OK in 47ms (Views: 46.9ms | ActiveRecord: 0.0ms)
693
-  (0.1ms) rollback transaction
694
-  (0.0ms) begin transaction
695
- -------------------------------
696
- PrawnRailsTest: test_html_strip
697
- -------------------------------
698
-  (0.0ms) rollback transaction
699
-  (0.0ms) begin transaction
700
- ------------------------------------------------
701
- RenderToStringTest: test_should_render_to_string
702
- ------------------------------------------------
703
- Rendering pdf/render_pdf.pdf.prawn
704
- Rendered pdf/render_pdf.pdf.prawn (11.8ms)
705
-  (0.1ms) rollback transaction
706
-  (0.1ms) begin transaction
707
- ----------------------------------------
708
- PdfControllerTest: test_should_get_a_pdf
709
- ----------------------------------------
710
- Processing by PdfController#render_pdf as HTML
711
- Rendering pdf/render_pdf.pdf.prawn
712
- Rendered pdf/render_pdf.pdf.prawn (43.0ms)
713
- Completed 200 OK in 55ms (Views: 55.2ms | ActiveRecord: 0.0ms)
714
-  (0.2ms) rollback transaction
715
-  (0.0ms) begin transaction
716
- -------------------------------
717
- PrawnRailsTest: test_html_strip
718
- -------------------------------
719
-  (0.0ms) rollback transaction
720
-  (0.0ms) begin transaction
721
- ------------------------------------------------
722
- RenderToStringTest: test_should_render_to_string
723
- ------------------------------------------------
724
- Rendering pdf/render_pdf.pdf.prawn
725
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
726
-  (0.1ms) rollback transaction
727
-  (0.1ms) begin transaction
728
- ----------------------------------------
729
- PdfControllerTest: test_should_get_a_pdf
730
- ----------------------------------------
731
- Processing by PdfController#render_pdf as HTML
732
- Rendering pdf/render_pdf.pdf.prawn
733
- Rendered pdf/render_pdf.pdf.prawn (52.9ms)
734
- Completed 200 OK in 61ms (Views: 59.7ms | ActiveRecord: 0.0ms)
735
-  (0.3ms) rollback transaction
736
-  (0.1ms) begin transaction
737
- -------------------------------
738
- PrawnRailsTest: test_html_strip
739
- -------------------------------
740
-  (0.0ms) rollback transaction
741
-  (0.0ms) begin transaction
742
- ------------------------------------------------
743
- RenderToStringTest: test_should_render_to_string
744
- ------------------------------------------------
745
- Rendering pdf/render_pdf.pdf.prawn
746
- Rendered pdf/render_pdf.pdf.prawn (11.7ms)
747
-  (0.1ms) rollback transaction
748
-  (0.1ms) begin transaction
749
- -------------------------------
750
- PrawnRailsTest: test_html_strip
751
- -------------------------------
752
-  (0.1ms) rollback transaction
753
-  (0.0ms) begin transaction
754
- ----------------------------------------
755
- PdfControllerTest: test_should_get_a_pdf
756
- ----------------------------------------
757
- Processing by PdfController#render_pdf as HTML
758
- Rendering pdf/render_pdf.pdf.prawn
759
- Rendered pdf/render_pdf.pdf.prawn (85.5ms)
760
- Completed 200 OK in 90ms (Views: 89.5ms | ActiveRecord: 0.0ms)
761
-  (0.1ms) rollback transaction
762
-  (0.1ms) begin transaction
763
- ------------------------------------------------
764
- RenderToStringTest: test_should_render_to_string
765
- ------------------------------------------------
766
- Rendering pdf/render_pdf.pdf.prawn
767
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
768
-  (0.1ms) rollback transaction
769
-  (0.1ms) begin transaction
770
- ----------------------------------------
771
- PdfControllerTest: test_should_get_a_pdf
772
- ----------------------------------------
773
- Processing by PdfController#render_pdf as HTML
774
- Rendering pdf/render_pdf.pdf.prawn
775
- Rendered pdf/render_pdf.pdf.prawn (52.0ms)
776
- Completed 200 OK in 59ms (Views: 58.7ms | ActiveRecord: 0.0ms)
777
-  (0.3ms) rollback transaction
778
-  (0.0ms) begin transaction
779
- ------------------------------------------------
780
- RenderToStringTest: test_should_render_to_string
781
- ------------------------------------------------
782
- Rendering pdf/render_pdf.pdf.prawn
783
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
784
-  (0.1ms) rollback transaction
785
-  (0.0ms) begin transaction
786
- -------------------------------
787
- PrawnRailsTest: test_html_strip
788
- -------------------------------
789
-  (0.0ms) rollback transaction
790
-  (0.1ms) begin transaction
791
- ----------------------------------------
792
- PdfControllerTest: test_should_get_a_pdf
793
- ----------------------------------------
794
- Processing by PdfController#render_pdf as HTML
795
- Rendering pdf/render_pdf.pdf.prawn
796
- Rendered pdf/render_pdf.pdf.prawn (43.0ms)
797
- Completed 200 OK in 47ms (Views: 46.6ms | ActiveRecord: 0.0ms)
798
-  (0.2ms) rollback transaction
799
-  (0.1ms) begin transaction
800
- ------------------------------------------------
801
- RenderToStringTest: test_should_render_to_string
802
- ------------------------------------------------
803
- Rendering pdf/render_pdf.pdf.prawn
804
- Rendered pdf/render_pdf.pdf.prawn (11.7ms)
805
-  (0.1ms) rollback transaction
806
-  (0.0ms) begin transaction
807
- -------------------------------
808
- PrawnRailsTest: test_html_strip
809
- -------------------------------
810
-  (0.0ms) rollback transaction
811
-  (0.1ms) begin transaction
812
- -------------------------------
813
- PrawnRailsTest: test_html_strip
814
- -------------------------------
815
-  (0.1ms) rollback transaction
816
-  (0.0ms) begin transaction
817
- ----------------------------------------
818
- PdfControllerTest: test_should_get_a_pdf
819
- ----------------------------------------
820
- Processing by PdfController#render_pdf as HTML
821
- Rendering pdf/render_pdf.pdf.prawn
822
- Rendered pdf/render_pdf.pdf.prawn (81.5ms)
823
- Completed 200 OK in 87ms (Views: 86.9ms | ActiveRecord: 0.0ms)
824
-  (0.1ms) rollback transaction
825
-  (0.1ms) begin transaction
826
- ------------------------------------------------
827
- RenderToStringTest: test_should_render_to_string
828
- ------------------------------------------------
829
- Rendering pdf/render_pdf.pdf.prawn
830
- Rendered pdf/render_pdf.pdf.prawn (11.9ms)
831
-  (0.1ms) rollback transaction
832
-  (0.1ms) begin transaction
833
- ------------------------------------------------
834
- RenderToStringTest: test_should_render_to_string
835
- ------------------------------------------------
836
- Rendering pdf/render_pdf.pdf.prawn
837
- Rendered pdf/render_pdf.pdf.prawn (51.2ms)
838
-  (0.1ms) rollback transaction
839
-  (0.2ms) begin transaction
840
- ----------------------------------------
841
- PdfControllerTest: test_should_get_a_pdf
842
- ----------------------------------------
843
- Processing by PdfController#render_pdf as HTML
844
- Rendering pdf/render_pdf.pdf.prawn
845
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
846
- Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)
847
-  (0.1ms) rollback transaction
848
-  (0.1ms) begin transaction
849
- -------------------------------
850
- PrawnRailsTest: test_html_strip
851
- -------------------------------
852
-  (0.0ms) rollback transaction
853
-  (0.1ms) begin transaction
854
- -------------------------------
855
- PrawnRailsTest: test_html_strip
856
- -------------------------------
857
-  (0.0ms) rollback transaction
858
-  (0.0ms) begin transaction
859
- ----------------------------------------
860
- PdfControllerTest: test_should_get_a_pdf
861
- ----------------------------------------
862
- Processing by PdfController#render_pdf as HTML
863
- Rendering pdf/render_pdf.pdf.prawn
864
- Rendered pdf/render_pdf.pdf.prawn (42.4ms)
865
- Completed 200 OK in 46ms (Views: 46.1ms | ActiveRecord: 0.0ms)
866
-  (0.2ms) rollback transaction
867
-  (0.0ms) begin transaction
868
- ------------------------------------------------
869
- RenderToStringTest: test_should_render_to_string
870
- ------------------------------------------------
871
- Rendering pdf/render_pdf.pdf.prawn
872
- Rendered pdf/render_pdf.pdf.prawn (12.2ms)
873
-  (0.1ms) rollback transaction
874
-  (0.1ms) begin transaction
875
- ----------------------------------------
876
- PdfControllerTest: test_should_get_a_pdf
877
- ----------------------------------------
878
- Processing by PdfController#render_pdf as HTML
879
- Rendering pdf/render_pdf.pdf.prawn
880
- Rendered pdf/render_pdf.pdf.prawn (85.8ms)
881
- Completed 200 OK in 90ms (Views: 90.0ms | ActiveRecord: 0.0ms)
882
-  (0.1ms) rollback transaction
883
-  (0.1ms) begin transaction
884
- -------------------------------
885
- PrawnRailsTest: test_html_strip
886
- -------------------------------
887
-  (0.0ms) rollback transaction
888
-  (0.1ms) begin transaction
889
- ------------------------------------------------
890
- RenderToStringTest: test_should_render_to_string
891
- ------------------------------------------------
892
- Rendering pdf/render_pdf.pdf.prawn
893
- Rendered pdf/render_pdf.pdf.prawn (12.1ms)
894
-  (0.1ms) rollback transaction
895
-  (0.1ms) begin transaction
896
- ------------------------------------------------
897
- RenderToStringTest: test_should_render_to_string
898
- ------------------------------------------------
899
- Rendering pdf/render_pdf.pdf.prawn
900
- Rendered pdf/render_pdf.pdf.prawn (84.5ms)
901
-  (0.1ms) rollback transaction
902
-  (0.0ms) begin transaction
903
- ----------------------------------------
904
- PdfControllerTest: test_should_get_a_pdf
905
- ----------------------------------------
906
- Processing by PdfController#render_pdf as HTML
907
- Rendering pdf/render_pdf.pdf.prawn
908
- Rendered pdf/render_pdf.pdf.prawn (12.2ms)
909
- Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.0ms)
910
-  (0.1ms) rollback transaction
911
-  (0.0ms) begin transaction
912
- -------------------------------
913
- PrawnRailsTest: test_html_strip
914
- -------------------------------
915
-  (0.0ms) rollback transaction
916
-  (0.1ms) begin transaction
917
- ------------------------------------------------
918
- RenderToStringTest: test_should_render_to_string
919
- ------------------------------------------------
920
- Rendering pdf/render_pdf.pdf.prawn
921
- Rendered pdf/render_pdf.pdf.prawn (90.0ms)
922
-  (0.1ms) rollback transaction
923
-  (0.0ms) begin transaction
924
- -------------------------------
925
- PrawnRailsTest: test_html_strip
926
- -------------------------------
927
-  (0.0ms) rollback transaction
928
-  (0.0ms) begin transaction
929
- ----------------------------------------
930
- PdfControllerTest: test_should_get_a_pdf
931
- ----------------------------------------
932
- Processing by PdfController#render_pdf as HTML
933
- Rendering pdf/render_pdf.pdf.prawn
934
- Rendered pdf/render_pdf.pdf.prawn (12.0ms)
935
- Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.0ms)
936
-  (0.2ms) rollback transaction
937
-  (0.1ms) begin transaction
938
- ---------------------
939
- NavigationTest: test_
940
- ---------------------
941
-  (0.1ms) rollback transaction
942
-  (0.0ms) begin transaction
943
- --------------------------------------------------------------------------
944
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
945
- --------------------------------------------------------------------------
946
-  (0.0ms) rollback transaction
947
-  (0.0ms) begin transaction
948
- ---------------------------------------
949
- NavigationTest: test_Missing_pdf_format
950
- ---------------------------------------
951
-  (0.0ms) rollback transaction
952
-  (0.0ms) begin transaction
953
- ---------------------------------------------
954
- NavigationTest: test_Registers_:pdf_mime_type
955
- ---------------------------------------------
956
-  (0.0ms) rollback transaction
957
-  (0.0ms) begin transaction
958
- ------------------------------------------------------
959
- NavigationTest: test_Registers_:prawn_template_handler
960
- ------------------------------------------------------
961
-  (0.0ms) rollback transaction
962
-  (0.0ms) begin transaction
963
- -------------------------------
964
- NavigationTest: test_strip_tags
965
- -------------------------------
966
-  (0.1ms) rollback transaction
967
-  (0.0ms) begin transaction
968
- -------------------------------------------------------
969
- NavigationTest: test_legacy_test_-_render_pdf_to_string
970
- -------------------------------------------------------
971
-  (0.1ms) rollback transaction
972
-  (0.1ms) begin transaction
973
- ---------------------------------------
974
- NavigationTest: test_render_html_action
975
- ---------------------------------------
976
- Started GET "/" for 127.0.0.1 at 2018-06-13 10:23:35 -0700
977
-  (0.1ms) rollback transaction
978
-  (0.1ms) begin transaction
979
- ---------------------------------------------
980
- NavigationTest: test_legacy_test_-_render_pdf
981
- ---------------------------------------------
982
-  (0.0ms) rollback transaction
983
-  (0.0ms) begin transaction
984
- --------------------------------------
985
- NavigationTest: test_render_pdf_action
986
- --------------------------------------
987
-  (0.0ms) rollback transaction
988
-  (0.0ms) begin transaction
989
- -------------------------------
990
- PrawnRailsTest: test_html_strip
991
- -------------------------------
992
-  (0.0ms) rollback transaction
993
-  (0.1ms) begin transaction
994
- ---------------------------------------
995
- NavigationTest: test_Missing_pdf_format
996
- ---------------------------------------
997
-  (0.1ms) rollback transaction
998
-  (0.1ms) begin transaction
999
- ---------------------------------------------
1000
- NavigationTest: test_legacy_test_-_render_pdf
1001
- ---------------------------------------------
1002
-  (0.1ms) rollback transaction
1003
-  (0.1ms) begin transaction
1004
- -------------------------------
1005
- NavigationTest: test_strip_tags
1006
- -------------------------------
1007
-  (0.1ms) rollback transaction
1008
-  (0.1ms) begin transaction
1009
- ---------------------
1010
- NavigationTest: test_
1011
- ---------------------
1012
-  (0.1ms) rollback transaction
1013
-  (0.1ms) begin transaction
1014
- ------------------------------------------------------
1015
- NavigationTest: test_Registers_:prawn_template_handler
1016
- ------------------------------------------------------
1017
-  (0.1ms) rollback transaction
1018
-  (0.1ms) begin transaction
1019
- ---------------------------------------
1020
- NavigationTest: test_render_html_action
1021
- ---------------------------------------
1022
- Started GET "/" for 127.0.0.1 at 2018-06-13 10:25:41 -0700
1023
-  (0.1ms) rollback transaction
1024
-  (0.1ms) begin transaction
1025
- --------------------------------------------------------------------------
1026
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1027
- --------------------------------------------------------------------------
1028
-  (0.1ms) rollback transaction
1029
-  (0.1ms) begin transaction
1030
- --------------------------------------
1031
- NavigationTest: test_render_pdf_action
1032
- --------------------------------------
1033
-  (0.1ms) rollback transaction
1034
-  (0.1ms) begin transaction
1035
- -------------------------------------------------------
1036
- NavigationTest: test_legacy_test_-_render_pdf_to_string
1037
- -------------------------------------------------------
1038
-  (0.1ms) rollback transaction
1039
-  (0.1ms) begin transaction
1040
- ---------------------------------------------
1041
- NavigationTest: test_Registers_:pdf_mime_type
1042
- ---------------------------------------------
1043
-  (0.1ms) rollback transaction
1044
-  (0.1ms) begin transaction
1045
- ---------------------------
1046
- PrawnRailsTest: test_config
1047
- ---------------------------
1048
-  (0.1ms) rollback transaction
1049
-  (0.1ms) begin transaction
1050
- -------------------------------
1051
- PrawnRailsTest: test_html_strip
1052
- -------------------------------
1053
-  (0.1ms) rollback transaction
1054
-  (0.1ms) begin transaction
1055
- ---------------------------------------
1056
- NavigationTest: test_Missing_pdf_format
1057
- ---------------------------------------
1058
-  (0.1ms) rollback transaction
1059
-  (0.1ms) begin transaction
1060
- ---------------------------------------
1061
- NavigationTest: test_render_html_action
1062
- ---------------------------------------
1063
- Started GET "/" for 127.0.0.1 at 2018-06-13 10:26:26 -0700
1064
-  (0.1ms) rollback transaction
1065
-  (0.1ms) begin transaction
1066
- ---------------------
1067
- NavigationTest: test_
1068
- ---------------------
1069
-  (0.1ms) rollback transaction
1070
-  (0.1ms) begin transaction
1071
- ---------------------------------------------
1072
- NavigationTest: test_Registers_:pdf_mime_type
1073
- ---------------------------------------------
1074
-  (0.1ms) rollback transaction
1075
-  (0.1ms) begin transaction
1076
- ---------------------------------------------
1077
- NavigationTest: test_legacy_test_-_render_pdf
1078
- ---------------------------------------------
1079
-  (0.1ms) rollback transaction
1080
-  (0.1ms) begin transaction
1081
- --------------------------------------------------------------------------
1082
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1083
- --------------------------------------------------------------------------
1084
-  (0.1ms) rollback transaction
1085
-  (0.1ms) begin transaction
1086
- -------------------------------
1087
- NavigationTest: test_strip_tags
1088
- -------------------------------
1089
-  (0.1ms) rollback transaction
1090
-  (0.1ms) begin transaction
1091
- --------------------------------------
1092
- NavigationTest: test_render_pdf_action
1093
- --------------------------------------
1094
-  (0.1ms) rollback transaction
1095
-  (0.1ms) begin transaction
1096
- -------------------------------------------------------
1097
- NavigationTest: test_legacy_test_-_render_pdf_to_string
1098
- -------------------------------------------------------
1099
- Rendering reports/sample.pdf.prawn
1100
- Rendered reports/sample.pdf.prawn (54.7ms)
1101
-  (0.1ms) rollback transaction
1102
-  (0.1ms) begin transaction
1103
- ------------------------------------------------------
1104
- NavigationTest: test_Registers_:prawn_template_handler
1105
- ------------------------------------------------------
1106
-  (0.1ms) rollback transaction
1107
-  (0.1ms) begin transaction
1108
- ---------------------------
1109
- PrawnRailsTest: test_config
1110
- ---------------------------
1111
-  (0.1ms) rollback transaction
1112
-  (0.1ms) begin transaction
1113
- -------------------------------
1114
- PrawnRailsTest: test_html_strip
1115
- -------------------------------
1116
-  (0.1ms) rollback transaction
1117
-  (0.1ms) begin transaction
1118
- ---------------------
1119
- NavigationTest: test_
1120
- ---------------------
1121
-  (0.1ms) rollback transaction
1122
-  (0.0ms) begin transaction
1123
- ---------------------------------------------
1124
- NavigationTest: test_Registers_:pdf_mime_type
1125
- ---------------------------------------------
1126
-  (0.0ms) rollback transaction
1127
-  (0.0ms) begin transaction
1128
- ---------------------------------------------
1129
- NavigationTest: test_legacy_test_-_render_pdf
1130
- ---------------------------------------------
1131
-  (0.0ms) rollback transaction
1132
-  (0.0ms) begin transaction
1133
- -------------------------------------------------------
1134
- NavigationTest: test_legacy_test_-_render_pdf_to_string
1135
- -------------------------------------------------------
1136
- Rendering reports/sample.pdf.prawn
1137
- Rendered reports/sample.pdf.prawn (43.1ms)
1138
-  (0.1ms) rollback transaction
1139
-  (0.0ms) begin transaction
1140
- ---------------------------------------
1141
- NavigationTest: test_render_html_action
1142
- ---------------------------------------
1143
-  (0.0ms) rollback transaction
1144
-  (0.0ms) begin transaction
1145
- -------------------------------
1146
- NavigationTest: test_strip_tags
1147
- -------------------------------
1148
-  (0.0ms) rollback transaction
1149
-  (0.0ms) begin transaction
1150
- ---------------------------------------
1151
- NavigationTest: test_Missing_pdf_format
1152
- ---------------------------------------
1153
-  (0.1ms) rollback transaction
1154
-  (0.0ms) begin transaction
1155
- --------------------------------------
1156
- NavigationTest: test_render_pdf_action
1157
- --------------------------------------
1158
-  (0.1ms) rollback transaction
1159
-  (0.0ms) begin transaction
1160
- --------------------------------------------------------------------------
1161
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1162
- --------------------------------------------------------------------------
1163
-  (0.0ms) rollback transaction
1164
-  (0.0ms) begin transaction
1165
- ------------------------------------------------------
1166
- NavigationTest: test_Registers_:prawn_template_handler
1167
- ------------------------------------------------------
1168
-  (0.0ms) rollback transaction
1169
-  (0.0ms) begin transaction
1170
- ---------------------------
1171
- PrawnRailsTest: test_config
1172
- ---------------------------
1173
-  (0.0ms) rollback transaction
1174
-  (0.1ms) begin transaction
1175
- -------------------------------
1176
- PrawnRailsTest: test_html_strip
1177
- -------------------------------
1178
-  (0.0ms) rollback transaction
1179
-  (0.1ms) begin transaction
1180
- ---------------------------
1181
- PrawnRailsTest: test_config
1182
- ---------------------------
1183
-  (0.2ms) rollback transaction
1184
-  (0.2ms) begin transaction
1185
- -------------------------------
1186
- PrawnRailsTest: test_html_strip
1187
- -------------------------------
1188
-  (0.2ms) rollback transaction
1189
-  (0.2ms) begin transaction
1190
- ---------------------------------------
1191
- NavigationTest: test_Missing_pdf_format
1192
- ---------------------------------------
1193
-  (0.1ms) rollback transaction
1194
-  (0.1ms) begin transaction
1195
- --------------------------------------
1196
- NavigationTest: test_render_pdf_action
1197
- --------------------------------------
1198
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:28:53 -0700
1199
- Processing by ReportsController#sample as PDF
1200
- Rendering reports/sample.pdf.prawn
1201
- Rendered reports/sample.pdf.prawn (45.5ms)
1202
- Completed 200 OK in 50ms (Views: 48.9ms | ActiveRecord: 0.0ms)
1203
-  (0.2ms) rollback transaction
1204
-  (0.1ms) begin transaction
1205
- -------------------------------------------------------
1206
- NavigationTest: test_legacy_test_-_render_pdf_to_string
1207
- -------------------------------------------------------
1208
- Rendering reports/sample.pdf.prawn
1209
- Rendered reports/sample.pdf.prawn (11.4ms)
1210
-  (0.1ms) rollback transaction
1211
-  (0.0ms) begin transaction
1212
- ---------------------------------------------
1213
- NavigationTest: test_Registers_:pdf_mime_type
1214
- ---------------------------------------------
1215
-  (0.0ms) rollback transaction
1216
-  (0.0ms) begin transaction
1217
- ---------------------------------------
1218
- NavigationTest: test_render_html_action
1219
- ---------------------------------------
1220
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:28:53 -0700
1221
- Processing by ReportsController#sample as HTML
1222
- Rendering reports/sample.html.erb within layouts/application
1223
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1224
- Completed 200 OK in 130ms (Views: 129.1ms | ActiveRecord: 0.0ms)
1225
-  (0.1ms) rollback transaction
1226
-  (0.1ms) begin transaction
1227
- ------------------------------------------------------
1228
- NavigationTest: test_Registers_:prawn_template_handler
1229
- ------------------------------------------------------
1230
-  (0.0ms) rollback transaction
1231
-  (0.0ms) begin transaction
1232
- -------------------------------
1233
- NavigationTest: test_strip_tags
1234
- -------------------------------
1235
-  (0.0ms) rollback transaction
1236
-  (0.0ms) begin transaction
1237
- --------------------------------------------------------------------------
1238
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1239
- --------------------------------------------------------------------------
1240
-  (0.0ms) rollback transaction
1241
-  (0.0ms) begin transaction
1242
- ---------------------------------------------
1243
- NavigationTest: test_legacy_test_-_render_pdf
1244
- ---------------------------------------------
1245
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:28:53 -0700
1246
- Processing by ReportsController#sample as PDF
1247
- Rendering reports/sample.pdf.prawn
1248
- Rendered reports/sample.pdf.prawn (11.1ms)
1249
- Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.0ms)
1250
-  (0.1ms) rollback transaction
1251
-  (0.0ms) begin transaction
1252
- ---------------------
1253
- NavigationTest: test_
1254
- ---------------------
1255
-  (0.0ms) rollback transaction
1256
-  (0.1ms) begin transaction
1257
- ---------------------------
1258
- PrawnRailsTest: test_config
1259
- ---------------------------
1260
-  (0.1ms) rollback transaction
1261
-  (0.1ms) begin transaction
1262
- -------------------------------
1263
- PrawnRailsTest: test_html_strip
1264
- -------------------------------
1265
-  (0.1ms) rollback transaction
1266
-  (0.1ms) begin transaction
1267
- -------------------------------------------------------
1268
- NavigationTest: test_legacy_test_-_render_pdf_to_string
1269
- -------------------------------------------------------
1270
- Rendering reports/sample.pdf.prawn
1271
- Rendered reports/sample.pdf.prawn (45.2ms)
1272
-  (0.1ms) rollback transaction
1273
-  (0.1ms) begin transaction
1274
- ---------------------------------------
1275
- NavigationTest: test_render_html_action
1276
- ---------------------------------------
1277
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:37:13 -0700
1278
- Processing by ReportsController#sample as HTML
1279
- Rendering reports/sample.html.erb within layouts/application
1280
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1281
- Completed 200 OK in 133ms (Views: 132.0ms | ActiveRecord: 0.0ms)
1282
-  (0.1ms) rollback transaction
1283
-  (0.1ms) begin transaction
1284
- ---------------------------------------
1285
- NavigationTest: test_Missing_pdf_format
1286
- ---------------------------------------
1287
-  (0.1ms) rollback transaction
1288
-  (0.1ms) begin transaction
1289
- ------------------------------------------------------
1290
- NavigationTest: test_Registers_:prawn_template_handler
1291
- ------------------------------------------------------
1292
-  (0.1ms) rollback transaction
1293
-  (0.1ms) begin transaction
1294
- ---------------------------------------------
1295
- NavigationTest: test_legacy_test_-_render_pdf
1296
- ---------------------------------------------
1297
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:37:13 -0700
1298
- Processing by ReportsController#sample as PDF
1299
- Rendering reports/sample.pdf.prawn
1300
- Rendered reports/sample.pdf.prawn (15.5ms)
1301
- Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)
1302
-  (0.1ms) rollback transaction
1303
-  (0.1ms) begin transaction
1304
- -------------------------------
1305
- NavigationTest: test_strip_tags
1306
- -------------------------------
1307
-  (0.1ms) rollback transaction
1308
-  (0.1ms) begin transaction
1309
- --------------------------------------------------------------------------
1310
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1311
- --------------------------------------------------------------------------
1312
-  (0.1ms) rollback transaction
1313
-  (0.1ms) begin transaction
1314
- ---------------------------------------------
1315
- NavigationTest: test_Registers_:pdf_mime_type
1316
- ---------------------------------------------
1317
-  (0.1ms) rollback transaction
1318
-  (0.1ms) begin transaction
1319
- ---------------------
1320
- NavigationTest: test_
1321
- ---------------------
1322
-  (0.1ms) rollback transaction
1323
-  (0.1ms) begin transaction
1324
- --------------------------------------
1325
- NavigationTest: test_render_pdf_action
1326
- --------------------------------------
1327
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:37:14 -0700
1328
- Processing by ReportsController#sample as PDF
1329
- Rendering reports/sample.pdf.prawn
1330
- Rendered reports/sample.pdf.prawn (31.4ms)
1331
- Completed 200 OK in 32ms (Views: 32.0ms | ActiveRecord: 0.0ms)
1332
-  (0.1ms) rollback transaction
1333
-  (0.2ms) begin transaction
1334
- --------------------------------------------------------
1335
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1336
- --------------------------------------------------------
1337
- Rendering reports/sample.pdf.prawn
1338
- Rendered reports/sample.pdf.prawn (43.7ms)
1339
-  (0.1ms) rollback transaction
1340
-  (0.0ms) begin transaction
1341
- ----------------------------------------
1342
- NavigationTest: test_Renders_html_action
1343
- ----------------------------------------
1344
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:49:33 -0700
1345
- Processing by ReportsController#sample as HTML
1346
- Rendering reports/sample.html.erb within layouts/application
1347
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1348
- Completed 200 OK in 129ms (Views: 128.3ms | ActiveRecord: 0.0ms)
1349
-  (0.2ms) rollback transaction
1350
-  (0.0ms) begin transaction
1351
- --------------------------------------------------------------------------
1352
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1353
- --------------------------------------------------------------------------
1354
-  (0.0ms) rollback transaction
1355
-  (0.0ms) begin transaction
1356
- ---------------------
1357
- NavigationTest: test_
1358
- ---------------------
1359
-  (0.0ms) rollback transaction
1360
-  (0.0ms) begin transaction
1361
- ------------------------------------------------------
1362
- NavigationTest: test_Registers_:prawn_template_handler
1363
- ------------------------------------------------------
1364
-  (0.0ms) rollback transaction
1365
-  (0.0ms) begin transaction
1366
- ---------------------------------------------
1367
- NavigationTest: test_Registers_:pdf_mime_type
1368
- ---------------------------------------------
1369
-  (0.0ms) rollback transaction
1370
-  (0.0ms) begin transaction
1371
- ----------------------------------------------
1372
- NavigationTest: test_Legacy_Test_-_Renders_pdf
1373
- ----------------------------------------------
1374
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:49:33 -0700
1375
- Processing by ReportsController#sample as PDF
1376
- Rendering reports/sample.pdf.prawn
1377
- Rendered reports/sample.pdf.prawn (12.1ms)
1378
- Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms)
1379
-  (0.1ms) rollback transaction
1380
-  (0.0ms) begin transaction
1381
- ---------------------------------------------------
1382
- NavigationTest: test_Prawn-Rails_strip_tags_helpers
1383
- ---------------------------------------------------
1384
-  (0.0ms) rollback transaction
1385
-  (0.0ms) begin transaction
1386
- ---------------------------------------
1387
- NavigationTest: test_Renders_pdf_action
1388
- ---------------------------------------
1389
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:49:33 -0700
1390
- Processing by ReportsController#sample as PDF
1391
- Rendering reports/sample.pdf.prawn
1392
- Rendered reports/sample.pdf.prawn (24.6ms)
1393
- Completed 200 OK in 26ms (Views: 25.7ms | ActiveRecord: 0.0ms)
1394
-  (0.1ms) rollback transaction
1395
-  (0.0ms) begin transaction
1396
- ---------------------------
1397
- PrawnRailsTest: test_config
1398
- ---------------------------
1399
-  (0.0ms) rollback transaction
1400
-  (0.0ms) begin transaction
1401
- -------------------------------
1402
- PrawnRailsTest: test_html_strip
1403
- -------------------------------
1404
-  (0.0ms) rollback transaction
1405
-  (0.1ms) begin transaction
1406
- ---------------------------
1407
- PrawnRailsTest: test_config
1408
- ---------------------------
1409
-  (0.1ms) rollback transaction
1410
-  (0.1ms) begin transaction
1411
- -------------------------------
1412
- PrawnRailsTest: test_html_strip
1413
- -------------------------------
1414
-  (0.1ms) rollback transaction
1415
-  (0.1ms) begin transaction
1416
- --------------------------------------------------------------------------
1417
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1418
- --------------------------------------------------------------------------
1419
-  (0.1ms) rollback transaction
1420
-  (0.1ms) begin transaction
1421
- --------------------------------------------------------
1422
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1423
- --------------------------------------------------------
1424
- Rendering reports/sample.pdf.prawn
1425
- Rendered reports/sample.pdf.prawn (57.3ms)
1426
-  (0.1ms) rollback transaction
1427
-  (0.1ms) begin transaction
1428
- ---------------------
1429
- NavigationTest: test_
1430
- ---------------------
1431
-  (0.1ms) rollback transaction
1432
-  (0.1ms) begin transaction
1433
- ----------------------------------------
1434
- NavigationTest: test_Renders_html_action
1435
- ----------------------------------------
1436
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:52:41 -0700
1437
- Processing by ReportsController#sample as HTML
1438
- Rendering reports/sample.html.erb within layouts/application
1439
- Rendered reports/sample.html.erb within layouts/application (1.0ms)
1440
- Completed 200 OK in 181ms (Views: 180.1ms | ActiveRecord: 0.0ms)
1441
-  (0.1ms) rollback transaction
1442
-  (0.1ms) begin transaction
1443
- ---------------------------------------------
1444
- NavigationTest: test_Registers_:pdf_mime_type
1445
- ---------------------------------------------
1446
-  (0.1ms) rollback transaction
1447
-  (0.1ms) begin transaction
1448
- ------------------------------------------------------
1449
- NavigationTest: test_Registers_:prawn_template_handler
1450
- ------------------------------------------------------
1451
-  (0.1ms) rollback transaction
1452
-  (0.1ms) begin transaction
1453
- ---------------------------------------
1454
- NavigationTest: test_Renders_pdf_action
1455
- ---------------------------------------
1456
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:52:41 -0700
1457
- Processing by ReportsController#sample as PDF
1458
- Rendering reports/sample.pdf.prawn
1459
- Rendered reports/sample.pdf.prawn (48.9ms)
1460
- Completed 200 OK in 51ms (Views: 50.0ms | ActiveRecord: 0.0ms)
1461
-  (0.1ms) rollback transaction
1462
-  (0.1ms) begin transaction
1463
- ---------------------------
1464
- PrawnRailsTest: test_config
1465
- ---------------------------
1466
-  (0.1ms) rollback transaction
1467
-  (0.1ms) begin transaction
1468
- -------------------------------
1469
- PrawnRailsTest: test_html_strip
1470
- -------------------------------
1471
-  (0.1ms) rollback transaction
1472
-  (0.1ms) begin transaction
1473
- --------------------------------------------------------
1474
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1475
- --------------------------------------------------------
1476
- Rendering reports/sample.pdf.prawn
1477
- Rendered reports/sample.pdf.prawn (47.2ms)
1478
-  (0.1ms) rollback transaction
1479
-  (0.1ms) begin transaction
1480
- ------------------------------------------------------
1481
- NavigationTest: test_Registers_:prawn_template_handler
1482
- ------------------------------------------------------
1483
-  (0.1ms) rollback transaction
1484
-  (0.1ms) begin transaction
1485
- ---------------------------------------
1486
- NavigationTest: test_Renders_pdf_action
1487
- ---------------------------------------
1488
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:53:06 -0700
1489
- Processing by ReportsController#sample as PDF
1490
- Rendering reports/sample.pdf.prawn
1491
- Rendered reports/sample.pdf.prawn (16.4ms)
1492
- Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.0ms)
1493
-  (0.1ms) rollback transaction
1494
-  (0.1ms) begin transaction
1495
- ---------------------
1496
- NavigationTest: test_
1497
- ---------------------
1498
-  (0.1ms) rollback transaction
1499
-  (0.1ms) begin transaction
1500
- ---------------------------------------------
1501
- NavigationTest: test_Registers_:pdf_mime_type
1502
- ---------------------------------------------
1503
-  (0.1ms) rollback transaction
1504
-  (0.1ms) begin transaction
1505
- ----------------------------------------
1506
- NavigationTest: test_Renders_html_action
1507
- ----------------------------------------
1508
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:53:06 -0700
1509
- Processing by ReportsController#sample as HTML
1510
- Rendering reports/sample.html.erb within layouts/application
1511
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1512
- Completed 200 OK in 153ms (Views: 152.4ms | ActiveRecord: 0.0ms)
1513
-  (0.1ms) rollback transaction
1514
-  (0.1ms) begin transaction
1515
- --------------------------------------------------------------------------
1516
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1517
- --------------------------------------------------------------------------
1518
-  (0.1ms) rollback transaction
1519
-  (0.1ms) begin transaction
1520
- ---------------------
1521
- NavigationTest: test_
1522
- ---------------------
1523
-  (0.1ms) rollback transaction
1524
-  (0.1ms) begin transaction
1525
- --------------------------------------------------------------------------
1526
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1527
- --------------------------------------------------------------------------
1528
-  (0.1ms) rollback transaction
1529
-  (0.1ms) begin transaction
1530
- --------------------------------------------------------
1531
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1532
- --------------------------------------------------------
1533
- Rendering reports/sample.pdf.prawn
1534
- Rendered reports/sample.pdf.prawn (47.2ms)
1535
-  (0.1ms) rollback transaction
1536
-  (0.1ms) begin transaction
1537
- ------------------------------------------------------
1538
- NavigationTest: test_Registers_:prawn_template_handler
1539
- ------------------------------------------------------
1540
-  (0.1ms) rollback transaction
1541
-  (0.1ms) begin transaction
1542
- ----------------------------------------
1543
- NavigationTest: test_Renders_html_action
1544
- ----------------------------------------
1545
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:54:17 -0700
1546
- Processing by ReportsController#sample as HTML
1547
- Rendering reports/sample.html.erb within layouts/application
1548
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1549
- Completed 200 OK in 134ms (Views: 133.6ms | ActiveRecord: 0.0ms)
1550
-  (0.1ms) rollback transaction
1551
-  (0.1ms) begin transaction
1552
- ---------------------------------------------
1553
- NavigationTest: test_Registers_:pdf_mime_type
1554
- ---------------------------------------------
1555
-  (0.1ms) rollback transaction
1556
-  (0.1ms) begin transaction
1557
- ---------------------------------------
1558
- NavigationTest: test_Renders_pdf_action
1559
- ---------------------------------------
1560
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:54:17 -0700
1561
- Processing by ReportsController#sample as PDF
1562
- Rendering reports/sample.pdf.prawn
1563
- Rendered reports/sample.pdf.prawn (16.9ms)
1564
- Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.0ms)
1565
-  (0.6ms) rollback transaction
1566
-  (0.1ms) begin transaction
1567
- ---------------------------
1568
- PrawnRailsTest: test_config
1569
- ---------------------------
1570
-  (0.1ms) rollback transaction
1571
-  (0.1ms) begin transaction
1572
- -------------------------------
1573
- PrawnRailsTest: test_html_strip
1574
- -------------------------------
1575
-  (0.1ms) rollback transaction
1576
-  (0.1ms) begin transaction
1577
- ---------------------------
1578
- PrawnRailsTest: test_config
1579
- ---------------------------
1580
-  (0.1ms) rollback transaction
1581
-  (0.1ms) begin transaction
1582
- -------------------------------
1583
- PrawnRailsTest: test_html_strip
1584
- -------------------------------
1585
-  (0.1ms) rollback transaction
1586
-  (0.1ms) begin transaction
1587
- ---------------------
1588
- NavigationTest: test_
1589
- ---------------------
1590
-  (0.1ms) rollback transaction
1591
-  (0.1ms) begin transaction
1592
- ---------------------------------------------
1593
- NavigationTest: test_Registers_:pdf_mime_type
1594
- ---------------------------------------------
1595
-  (0.1ms) rollback transaction
1596
-  (0.1ms) begin transaction
1597
- --------------------------------------------------------------------------
1598
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1599
- --------------------------------------------------------------------------
1600
-  (0.1ms) rollback transaction
1601
-  (0.1ms) begin transaction
1602
- ---------------------------------------
1603
- NavigationTest: test_Renders_pdf_action
1604
- ---------------------------------------
1605
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:54:48 -0700
1606
- Processing by ReportsController#sample as PDF
1607
- Rendering reports/sample.pdf.prawn
1608
- Rendered reports/sample.pdf.prawn (47.5ms)
1609
- Completed 200 OK in 52ms (Views: 51.1ms | ActiveRecord: 0.0ms)
1610
-  (0.1ms) rollback transaction
1611
-  (0.1ms) begin transaction
1612
- --------------------------------------------------------
1613
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1614
- --------------------------------------------------------
1615
- Rendering reports/sample.pdf.prawn
1616
- Rendered reports/sample.pdf.prawn (16.4ms)
1617
-  (0.1ms) rollback transaction
1618
-  (0.1ms) begin transaction
1619
- ------------------------------------------------------
1620
- NavigationTest: test_Registers_:prawn_template_handler
1621
- ------------------------------------------------------
1622
-  (0.1ms) rollback transaction
1623
-  (0.1ms) begin transaction
1624
- ----------------------------------------
1625
- NavigationTest: test_Renders_html_action
1626
- ----------------------------------------
1627
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:54:48 -0700
1628
- Processing by ReportsController#sample as HTML
1629
- Rendering reports/sample.html.erb within layouts/application
1630
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1631
- Completed 200 OK in 155ms (Views: 154.6ms | ActiveRecord: 0.0ms)
1632
-  (0.1ms) rollback transaction
1633
-  (0.1ms) begin transaction
1634
- --------------------------------------------------------
1635
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1636
- --------------------------------------------------------
1637
- Rendering reports/sample.pdf.prawn
1638
- Rendered reports/sample.pdf.prawn (47.1ms)
1639
-  (0.1ms) rollback transaction
1640
-  (0.1ms) begin transaction
1641
- ---------------------------------------------
1642
- NavigationTest: test_Registers_:pdf_mime_type
1643
- ---------------------------------------------
1644
-  (0.1ms) rollback transaction
1645
-  (0.1ms) begin transaction
1646
- ----------------------------------------
1647
- NavigationTest: test_Renders_html_action
1648
- ----------------------------------------
1649
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:55:59 -0700
1650
- Processing by ReportsController#sample as HTML
1651
- Rendering reports/sample.html.erb within layouts/application
1652
- Rendered reports/sample.html.erb within layouts/application (1.0ms)
1653
- Completed 200 OK in 134ms (Views: 132.9ms | ActiveRecord: 0.0ms)
1654
-  (0.1ms) rollback transaction
1655
-  (0.1ms) begin transaction
1656
- ---------------------
1657
- NavigationTest: test_
1658
- ---------------------
1659
-  (0.1ms) rollback transaction
1660
-  (0.1ms) begin transaction
1661
- --------------------------------------------------------------------------
1662
- NavigationTest: test_ActionView::Base.full_sanitizer.sanitize(html_string)
1663
- --------------------------------------------------------------------------
1664
-  (0.1ms) rollback transaction
1665
-  (0.1ms) begin transaction
1666
- ------------------------------------------------------
1667
- NavigationTest: test_Registers_:prawn_template_handler
1668
- ------------------------------------------------------
1669
-  (0.1ms) rollback transaction
1670
-  (0.1ms) begin transaction
1671
- ---------------------------------------
1672
- NavigationTest: test_Renders_pdf_action
1673
- ---------------------------------------
1674
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:55:59 -0700
1675
- Processing by ReportsController#sample as PDF
1676
- Rendering reports/sample.pdf.prawn
1677
- Rendered reports/sample.pdf.prawn (16.8ms)
1678
- Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.0ms)
1679
-  (0.7ms) rollback transaction
1680
-  (0.1ms) begin transaction
1681
- ---------------------------
1682
- PrawnRailsTest: test_config
1683
- ---------------------------
1684
-  (0.1ms) rollback transaction
1685
-  (0.1ms) begin transaction
1686
- -------------------------------
1687
- PrawnRailsTest: test_html_strip
1688
- -------------------------------
1689
-  (0.1ms) rollback transaction
1690
-  (0.1ms) begin transaction
1691
- ---------------------------
1692
- PrawnRailsTest: test_config
1693
- ---------------------------
1694
-  (0.1ms) rollback transaction
1695
-  (0.1ms) begin transaction
1696
- -------------------------------
1697
- PrawnRailsTest: test_html_strip
1698
- -------------------------------
1699
-  (0.1ms) rollback transaction
1700
-  (0.1ms) begin transaction
1701
- ---------------------------------------
1702
- NavigationTest: test_Renders_pdf_action
1703
- ---------------------------------------
1704
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:56:17 -0700
1705
- Processing by ReportsController#sample as PDF
1706
- Rendering reports/sample.pdf.prawn
1707
- Rendered reports/sample.pdf.prawn (48.7ms)
1708
- Completed 200 OK in 53ms (Views: 52.4ms | ActiveRecord: 0.0ms)
1709
-  (0.2ms) rollback transaction
1710
-  (0.1ms) begin transaction
1711
- ---------------------
1712
- NavigationTest: test_
1713
- ---------------------
1714
-  (0.1ms) rollback transaction
1715
-  (0.1ms) begin transaction
1716
- --------------------------------------------------------
1717
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1718
- --------------------------------------------------------
1719
- Rendering reports/sample.pdf.prawn
1720
- Rendered reports/sample.pdf.prawn (17.2ms)
1721
-  (0.1ms) rollback transaction
1722
-  (0.1ms) begin transaction
1723
- ----------------------------------------
1724
- NavigationTest: test_Renders_html_action
1725
- ----------------------------------------
1726
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:56:17 -0700
1727
- Processing by ReportsController#sample as HTML
1728
- Rendering reports/sample.html.erb within layouts/application
1729
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1730
- Completed 200 OK in 223ms (Views: 221.7ms | ActiveRecord: 0.0ms)
1731
-  (0.1ms) rollback transaction
1732
-  (0.1ms) begin transaction
1733
- ------------------------------------------------------
1734
- NavigationTest: test_Registers_:prawn_template_handler
1735
- ------------------------------------------------------
1736
-  (0.1ms) rollback transaction
1737
-  (0.1ms) begin transaction
1738
- ---------------------------------------------
1739
- NavigationTest: test_Registers_:pdf_mime_type
1740
- ---------------------------------------------
1741
-  (0.1ms) rollback transaction
1742
-  (0.1ms) begin transaction
1743
- ------------------------------------------------------
1744
- NavigationTest: test_Registers_:prawn_template_handler
1745
- ------------------------------------------------------
1746
-  (0.1ms) rollback transaction
1747
-  (0.1ms) begin transaction
1748
- ---------------------
1749
- NavigationTest: test_
1750
- ---------------------
1751
-  (0.1ms) rollback transaction
1752
-  (0.1ms) begin transaction
1753
- --------------------------------------------------------
1754
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1755
- --------------------------------------------------------
1756
- Rendering reports/sample.pdf.prawn
1757
- Rendered reports/sample.pdf.prawn (64.2ms)
1758
-  (0.1ms) rollback transaction
1759
-  (0.1ms) begin transaction
1760
- ---------------------------------------------
1761
- NavigationTest: test_Registers_:pdf_mime_type
1762
- ---------------------------------------------
1763
-  (0.1ms) rollback transaction
1764
-  (0.1ms) begin transaction
1765
- ---------------------------------------
1766
- NavigationTest: test_Renders_pdf_action
1767
- ---------------------------------------
1768
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:56:53 -0700
1769
- Processing by ReportsController#sample as PDF
1770
- Rendering reports/sample.pdf.prawn
1771
- Rendered reports/sample.pdf.prawn (33.0ms)
1772
- Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.0ms)
1773
-  (0.1ms) rollback transaction
1774
-  (0.1ms) begin transaction
1775
- ----------------------------------------
1776
- NavigationTest: test_Renders_html_action
1777
- ----------------------------------------
1778
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:56:54 -0700
1779
- Processing by ReportsController#sample as HTML
1780
- Rendering reports/sample.html.erb within layouts/application
1781
- Rendered reports/sample.html.erb within layouts/application (0.8ms)
1782
- Completed 200 OK in 133ms (Views: 131.7ms | ActiveRecord: 0.0ms)
1783
-  (0.1ms) rollback transaction
1784
-  (0.1ms) begin transaction
1785
- ---------------------------
1786
- PrawnRailsTest: test_config
1787
- ---------------------------
1788
-  (0.1ms) rollback transaction
1789
-  (0.1ms) begin transaction
1790
- -------------------------------
1791
- PrawnRailsTest: test_html_strip
1792
- -------------------------------
1793
-  (0.1ms) rollback transaction
1794
-  (0.2ms) begin transaction
1795
- ---------------------------------------------
1796
- NavigationTest: test_Registers_:pdf_mime_type
1797
- ---------------------------------------------
1798
-  (0.1ms) rollback transaction
1799
-  (0.1ms) begin transaction
1800
- ----------------------------------------
1801
- NavigationTest: test_Renders_html_action
1802
- ----------------------------------------
1803
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 10:57:28 -0700
1804
- Processing by ReportsController#sample as HTML
1805
- Rendering reports/sample.html.erb within layouts/application
1806
- Rendered reports/sample.html.erb within layouts/application (1.0ms)
1807
- Completed 200 OK in 153ms (Views: 152.2ms | ActiveRecord: 0.0ms)
1808
-  (0.1ms) rollback transaction
1809
-  (0.1ms) begin transaction
1810
- --------------------------------------------------------
1811
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1812
- --------------------------------------------------------
1813
- Rendering reports/sample.pdf.prawn
1814
- Rendered reports/sample.pdf.prawn (51.9ms)
1815
-  (0.1ms) rollback transaction
1816
-  (0.1ms) begin transaction
1817
- ---------------------------------------
1818
- NavigationTest: test_Renders_pdf_action
1819
- ---------------------------------------
1820
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 10:57:29 -0700
1821
- Processing by ReportsController#sample as PDF
1822
- Rendering reports/sample.pdf.prawn
1823
- Rendered reports/sample.pdf.prawn (19.7ms)
1824
- Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.0ms)
1825
-  (0.4ms) rollback transaction
1826
-  (0.1ms) begin transaction
1827
- ---------------------
1828
- NavigationTest: test_
1829
- ---------------------
1830
-  (0.1ms) rollback transaction
1831
-  (0.2ms) begin transaction
1832
- ------------------------------------------------------
1833
- NavigationTest: test_Registers_:prawn_template_handler
1834
- ------------------------------------------------------
1835
-  (0.1ms) rollback transaction
1836
-  (0.1ms) begin transaction
1837
- ---------------------------
1838
- PrawnRailsTest: test_config
1839
- ---------------------------
1840
-  (0.1ms) rollback transaction
1841
-  (0.1ms) begin transaction
1842
- -------------------------------
1843
- PrawnRailsTest: test_html_strip
1844
- -------------------------------
1845
-  (0.1ms) rollback transaction
1846
-  (0.1ms) begin transaction
1847
- ---------------------------
1848
- PrawnRailsTest: test_config
1849
- ---------------------------
1850
-  (0.1ms) rollback transaction
1851
-  (0.1ms) begin transaction
1852
- ------------------------------------------------------
1853
- NavigationTest: test_Registers_:prawn_template_handler
1854
- ------------------------------------------------------
1855
-  (0.1ms) rollback transaction
1856
-  (0.0ms) begin transaction
1857
- ---------------------------------------
1858
- NavigationTest: test_Renders_pdf_action
1859
- ---------------------------------------
1860
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:14:32 -0700
1861
- Processing by ReportsController#sample as PDF
1862
- Rendering reports/sample.pdf.prawn
1863
- Rendered reports/sample.pdf.prawn (42.7ms)
1864
- Completed 200 OK in 47ms (Views: 45.8ms | ActiveRecord: 0.0ms)
1865
-  (0.1ms) rollback transaction
1866
-  (0.0ms) begin transaction
1867
- ---------------------------------------------
1868
- NavigationTest: test_Registers_:pdf_mime_type
1869
- ---------------------------------------------
1870
-  (0.1ms) rollback transaction
1871
-  (0.1ms) begin transaction
1872
- ---------------------
1873
- NavigationTest: test_
1874
- ---------------------
1875
-  (0.0ms) rollback transaction
1876
-  (0.1ms) begin transaction
1877
- --------------------------------------------------------
1878
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1879
- --------------------------------------------------------
1880
- Rendering reports/sample.pdf.prawn
1881
- Rendered reports/sample.pdf.prawn (11.6ms)
1882
-  (0.1ms) rollback transaction
1883
-  (0.1ms) begin transaction
1884
- ----------------------------------------
1885
- NavigationTest: test_Renders_html_action
1886
- ----------------------------------------
1887
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:14:33 -0700
1888
- Processing by ReportsController#sample as HTML
1889
- Rendering reports/sample.html.erb within layouts/application
1890
- Rendered reports/sample.html.erb within layouts/application (0.7ms)
1891
- Completed 200 OK in 204ms (Views: 203.2ms | ActiveRecord: 0.0ms)
1892
-  (0.1ms) rollback transaction
1893
-  (0.1ms) begin transaction
1894
- ----------------------------------------
1895
- NavigationTest: test_Renders_html_action
1896
- ----------------------------------------
1897
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:15:05 -0700
1898
- Processing by ReportsController#sample as HTML
1899
- Rendering reports/sample.html.erb within layouts/application
1900
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1901
- Completed 200 OK in 144ms (Views: 143.3ms | ActiveRecord: 0.0ms)
1902
-  (0.1ms) rollback transaction
1903
-  (0.1ms) begin transaction
1904
- ------------------------------------------------------
1905
- NavigationTest: test_Registers_:prawn_template_handler
1906
- ------------------------------------------------------
1907
-  (0.1ms) rollback transaction
1908
-  (0.1ms) begin transaction
1909
- --------------------------------------------------------
1910
- NavigationTest: test_Legacy_Test_-_Renders_pdf_to_string
1911
- --------------------------------------------------------
1912
- Rendering reports/sample.pdf.prawn
1913
- Rendered reports/sample.pdf.prawn (47.6ms)
1914
-  (0.1ms) rollback transaction
1915
-  (0.1ms) begin transaction
1916
- ---------------------------------------------
1917
- NavigationTest: test_Registers_:pdf_mime_type
1918
- ---------------------------------------------
1919
-  (0.1ms) rollback transaction
1920
-  (0.1ms) begin transaction
1921
- ---------------------------------------
1922
- NavigationTest: test_Renders_pdf_action
1923
- ---------------------------------------
1924
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:15:06 -0700
1925
- Processing by ReportsController#sample as PDF
1926
- Rendering reports/sample.pdf.prawn
1927
- Rendered reports/sample.pdf.prawn (15.6ms)
1928
- Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.0ms)
1929
-  (0.3ms) rollback transaction
1930
-  (0.1ms) begin transaction
1931
- ---------------------
1932
- NavigationTest: test_
1933
- ---------------------
1934
-  (0.1ms) rollback transaction
1935
-  (0.1ms) begin transaction
1936
- ---------------------------
1937
- PrawnRailsTest: test_config
1938
- ---------------------------
1939
-  (0.1ms) rollback transaction
1940
-  (0.1ms) begin transaction
1941
- ------------------------------------------------------
1942
- NavigationTest: test_Registers_:prawn_template_handler
1943
- ------------------------------------------------------
1944
-  (0.1ms) rollback transaction
1945
-  (0.1ms) begin transaction
1946
- ---------------------------------------------
1947
- NavigationTest: test_Registers_:pdf_mime_type
1948
- ---------------------------------------------
1949
-  (0.1ms) rollback transaction
1950
-  (0.1ms) begin transaction
1951
- ---------------------------------------
1952
- NavigationTest: test_Renders_pdf_action
1953
- ---------------------------------------
1954
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:17:21 -0700
1955
- Processing by ReportsController#sample as PDF
1956
- Rendering reports/sample.pdf.prawn
1957
- Rendered reports/sample.pdf.prawn (46.9ms)
1958
- Completed 200 OK in 51ms (Views: 50.4ms | ActiveRecord: 0.0ms)
1959
-  (0.3ms) rollback transaction
1960
-  (0.1ms) begin transaction
1961
- ---------------------
1962
- NavigationTest: test_
1963
- ---------------------
1964
-  (0.1ms) rollback transaction
1965
-  (0.1ms) begin transaction
1966
- ----------------------------------------
1967
- NavigationTest: test_Renders_html_action
1968
- ----------------------------------------
1969
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:17:21 -0700
1970
- Processing by ReportsController#sample as HTML
1971
- Rendering reports/sample.html.erb within layouts/application
1972
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
1973
- Completed 200 OK in 126ms (Views: 125.3ms | ActiveRecord: 0.0ms)
1974
-  (0.1ms) rollback transaction
1975
-  (0.1ms) begin transaction
1976
- ------------------------------------------
1977
- NavigationTest: test_Renders_pdf_to_string
1978
- ------------------------------------------
1979
- Rendering reports/sample.pdf.prawn
1980
- Rendered reports/sample.pdf.prawn (50.0ms)
1981
-  (0.1ms) rollback transaction
1982
-  (0.1ms) begin transaction
1983
- ---------------------------
1984
- PrawnRailsTest: test_config
1985
- ---------------------------
1986
-  (0.1ms) rollback transaction
1987
-  (0.1ms) begin transaction
1988
- ----------------------------------------
1989
- NavigationTest: test_Renders_html_action
1990
- ----------------------------------------
1991
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:17:42 -0700
1992
- Processing by ReportsController#sample as HTML
1993
- Rendering reports/sample.html.erb within layouts/application
1994
- Rendered reports/sample.html.erb within layouts/application (0.7ms)
1995
- Completed 200 OK in 140ms (Views: 139.7ms | ActiveRecord: 0.0ms)
1996
-  (0.1ms) rollback transaction
1997
-  (0.1ms) begin transaction
1998
- ---------------------------------------
1999
- NavigationTest: test_Renders_pdf_action
2000
- ---------------------------------------
2001
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:17:42 -0700
2002
- Processing by ReportsController#sample as PDF
2003
- Rendering reports/sample.pdf.prawn
2004
- Rendered reports/sample.pdf.prawn (42.4ms)
2005
- Completed 200 OK in 44ms (Views: 43.6ms | ActiveRecord: 0.0ms)
2006
-  (0.5ms) rollback transaction
2007
-  (0.0ms) begin transaction
2008
- ---------------------
2009
- NavigationTest: test_
2010
- ---------------------
2011
-  (0.0ms) rollback transaction
2012
-  (0.1ms) begin transaction
2013
- ---------------------------------------------
2014
- NavigationTest: test_Registers_:pdf_mime_type
2015
- ---------------------------------------------
2016
-  (0.1ms) rollback transaction
2017
-  (0.0ms) begin transaction
2018
- ------------------------------------------------------
2019
- NavigationTest: test_Registers_:prawn_template_handler
2020
- ------------------------------------------------------
2021
-  (0.0ms) rollback transaction
2022
-  (0.1ms) begin transaction
2023
- ------------------------------------------
2024
- NavigationTest: test_Renders_pdf_to_string
2025
- ------------------------------------------
2026
- Rendering reports/sample.pdf.prawn
2027
- Rendered reports/sample.pdf.prawn (12.5ms)
2028
-  (0.2ms) rollback transaction
2029
-  (0.0ms) begin transaction
2030
- ---------------------------
2031
- PrawnRailsTest: test_config
2032
- ---------------------------
2033
-  (0.1ms) rollback transaction
2034
-  (0.2ms) begin transaction
2035
- ---------------------------
2036
- PrawnRailsTest: test_config
2037
- ---------------------------
2038
-  (0.2ms) rollback transaction
2039
-  (0.2ms) begin transaction
2040
- ------------------------------------------------------
2041
- NavigationTest: test_Registers_:prawn_template_handler
2042
- ------------------------------------------------------
2043
-  (0.8ms) rollback transaction
2044
-  (0.1ms) begin transaction
2045
- ---------------------
2046
- NavigationTest: test_
2047
- ---------------------
2048
-  (0.1ms) rollback transaction
2049
-  (0.1ms) begin transaction
2050
- ------------------------------------------
2051
- NavigationTest: test_Renders_pdf_to_string
2052
- ------------------------------------------
2053
- Rendering reports/sample.pdf.prawn
2054
- Rendered reports/sample.pdf.prawn (45.9ms)
2055
-  (0.1ms) rollback transaction
2056
-  (0.1ms) begin transaction
2057
- ---------------------------------------
2058
- NavigationTest: test_Renders_pdf_action
2059
- ---------------------------------------
2060
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:18:11 -0700
2061
- Processing by ReportsController#sample as PDF
2062
- Rendering reports/sample.pdf.prawn
2063
- Rendered reports/sample.pdf.prawn (23.0ms)
2064
- Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.0ms)
2065
-  (0.3ms) rollback transaction
2066
-  (0.1ms) begin transaction
2067
- ---------------------------------------------
2068
- NavigationTest: test_Registers_:pdf_mime_type
2069
- ---------------------------------------------
2070
-  (0.1ms) rollback transaction
2071
-  (0.1ms) begin transaction
2072
- ----------------------------------------
2073
- NavigationTest: test_Renders_html_action
2074
- ----------------------------------------
2075
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:18:11 -0700
2076
- Processing by ReportsController#sample as HTML
2077
- Rendering reports/sample.html.erb within layouts/application
2078
- Rendered reports/sample.html.erb within layouts/application (1.0ms)
2079
- Completed 200 OK in 157ms (Views: 155.9ms | ActiveRecord: 0.0ms)
2080
-  (0.2ms) rollback transaction
2081
-  (0.1ms) begin transaction
2082
- ---------------------------
2083
- PrawnRailsTest: test_config
2084
- ---------------------------
2085
-  (0.1ms) rollback transaction
2086
-  (0.1ms) begin transaction
2087
- ---------------------
2088
- NavigationTest: test_
2089
- ---------------------
2090
-  (0.1ms) rollback transaction
2091
-  (0.1ms) begin transaction
2092
- ---------------------------------------------
2093
- NavigationTest: test_Registers_:pdf_mime_type
2094
- ---------------------------------------------
2095
-  (0.1ms) rollback transaction
2096
-  (0.1ms) begin transaction
2097
- ----------------------------------------
2098
- NavigationTest: test_Renders_html_action
2099
- ----------------------------------------
2100
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:18:23 -0700
2101
- Processing by ReportsController#sample as HTML
2102
- Rendering reports/sample.html.erb within layouts/application
2103
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2104
- Completed 200 OK in 144ms (Views: 143.2ms | ActiveRecord: 0.0ms)
2105
-  (0.1ms) rollback transaction
2106
-  (0.1ms) begin transaction
2107
- ---------------------------------------
2108
- NavigationTest: test_Renders_pdf_action
2109
- ---------------------------------------
2110
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:18:24 -0700
2111
- Processing by ReportsController#sample as PDF
2112
- Rendering reports/sample.pdf.prawn
2113
- Rendered reports/sample.pdf.prawn (47.3ms)
2114
- Completed 200 OK in 50ms (Views: 48.8ms | ActiveRecord: 0.0ms)
2115
-  (0.4ms) rollback transaction
2116
-  (0.1ms) begin transaction
2117
- ------------------------------------------------------
2118
- NavigationTest: test_Registers_:prawn_template_handler
2119
- ------------------------------------------------------
2120
-  (0.1ms) rollback transaction
2121
-  (0.1ms) begin transaction
2122
- ------------------------------------------
2123
- NavigationTest: test_Renders_pdf_to_string
2124
- ------------------------------------------
2125
- Rendering reports/sample.pdf.prawn
2126
- Rendered reports/sample.pdf.prawn (18.8ms)
2127
-  (0.3ms) rollback transaction
2128
-  (0.1ms) begin transaction
2129
- ---------------------------------------
2130
- NavigationTest: test_Renders_pdf_action
2131
- ---------------------------------------
2132
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:18:32 -0700
2133
- Processing by ReportsController#sample as PDF
2134
- Rendering reports/sample.pdf.prawn
2135
- Rendered reports/sample.pdf.prawn (47.1ms)
2136
- Completed 200 OK in 52ms (Views: 50.9ms | ActiveRecord: 0.0ms)
2137
-  (0.1ms) rollback transaction
2138
-  (0.1ms) begin transaction
2139
- ---------------------
2140
- NavigationTest: test_
2141
- ---------------------
2142
-  (0.1ms) rollback transaction
2143
-  (0.1ms) begin transaction
2144
- ---------------------------------------------
2145
- NavigationTest: test_Registers_:pdf_mime_type
2146
- ---------------------------------------------
2147
-  (0.1ms) rollback transaction
2148
-  (0.1ms) begin transaction
2149
- ------------------------------------------------------
2150
- NavigationTest: test_Registers_:prawn_template_handler
2151
- ------------------------------------------------------
2152
-  (0.1ms) rollback transaction
2153
-  (0.1ms) begin transaction
2154
- ----------------------------------------
2155
- NavigationTest: test_Renders_html_action
2156
- ----------------------------------------
2157
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:18:32 -0700
2158
- Processing by ReportsController#sample as HTML
2159
- Rendering reports/sample.html.erb within layouts/application
2160
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2161
- Completed 200 OK in 126ms (Views: 125.4ms | ActiveRecord: 0.0ms)
2162
-  (0.1ms) rollback transaction
2163
-  (0.1ms) begin transaction
2164
- ------------------------------------------
2165
- NavigationTest: test_Renders_pdf_to_string
2166
- ------------------------------------------
2167
- Rendering reports/sample.pdf.prawn
2168
- Rendered reports/sample.pdf.prawn (17.4ms)
2169
-  (0.2ms) rollback transaction
2170
-  (0.1ms) begin transaction
2171
- ---------------------------
2172
- PrawnRailsTest: test_config
2173
- ---------------------------
2174
-  (0.1ms) rollback transaction
2175
-  (0.1ms) begin transaction
2176
- ---------------------------
2177
- PrawnRailsTest: test_config
2178
- ---------------------------
2179
-  (0.1ms) rollback transaction
2180
-  (0.1ms) begin transaction
2181
- ---------------------------------------
2182
- NavigationTest: test_Renders_pdf_action
2183
- ---------------------------------------
2184
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:19:30 -0700
2185
- Processing by ReportsController#sample as PDF
2186
- Rendering reports/sample.pdf.prawn
2187
- Rendered reports/sample.pdf.prawn (46.3ms)
2188
- Completed 200 OK in 51ms (Views: 50.0ms | ActiveRecord: 0.0ms)
2
+ ------------------------------------------------------------------------------------
3
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
4
+ ------------------------------------------------------------------------------------
5
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
6
+ Processing by ReportsController#table as PDF
7
+ Rendering reports/table.pdf.prawn
8
+ Rendered reports/table.pdf.prawn (112.7ms)
9
+ Completed 200 OK in 121ms (Views: 120.1ms | ActiveRecord: 0.0ms)
2189
10
   (0.1ms) rollback transaction
2190
11
   (0.1ms) begin transaction
2191
12
  ------------------------------------------------------
@@ -2193,61 +14,44 @@ NavigationTest: test_Registers_:prawn_template_handler
2193
14
  ------------------------------------------------------
2194
15
   (0.1ms) rollback transaction
2195
16
   (0.1ms) begin transaction
2196
- ------------------------------------------
2197
- NavigationTest: test_Renders_pdf_to_string
2198
- ------------------------------------------
2199
- Rendering reports/sample.pdf.prawn
2200
- Rendered reports/sample.pdf.prawn (9.7ms)
2201
-  (0.1ms) rollback transaction
2202
-  (0.1ms) begin transaction
2203
- ---------------------
2204
- NavigationTest: test_
2205
- ---------------------
17
+ -----------------------------------------------------------------------
18
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
19
+ -----------------------------------------------------------------------
20
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
21
+ Processing by ReportsController#custom as PDF
22
+ Rendering reports/custom.pdf.prawn
23
+ Rendered reports/custom.pdf.prawn (2.2ms)
24
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
2206
25
   (0.1ms) rollback transaction
2207
26
   (0.1ms) begin transaction
2208
- ----------------------------------------
2209
- NavigationTest: test_Renders_html_action
2210
- ----------------------------------------
2211
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:19:30 -0700
2212
- Processing by ReportsController#sample as HTML
2213
- Rendering reports/sample.html.erb within layouts/application
2214
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2215
- Completed 200 OK in 216ms (Views: 215.4ms | ActiveRecord: 0.0ms)
2216
-  (0.1ms) rollback transaction
2217
-  (0.1ms) begin transaction
2218
- ---------------------------------------------
2219
- NavigationTest: test_Registers_:pdf_mime_type
2220
- ---------------------------------------------
2221
-  (0.1ms) rollback transaction
2222
-  (0.1ms) begin transaction
2223
- ------------------------------------------------------
2224
- NavigationTest: test_Registers_:prawn_template_handler
2225
- ------------------------------------------------------
27
+ -----------------------------------------------------------------
28
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
29
+ -----------------------------------------------------------------
30
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
31
+ Processing by ReportsController#ivar_filename as PDF
32
+ Rendering reports/custom.pdf.prawn
33
+ Rendered reports/custom.pdf.prawn (1.8ms)
34
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
2226
35
   (0.1ms) rollback transaction
2227
36
   (0.1ms) begin transaction
2228
37
  ----------------------------------------
2229
38
  NavigationTest: test_Renders_html_action
2230
39
  ----------------------------------------
2231
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:19:51 -0700
40
+ Started GET "/reports/sample" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
2232
41
  Processing by ReportsController#sample as HTML
2233
42
  Rendering reports/sample.html.erb within layouts/application
2234
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2235
- Completed 200 OK in 146ms (Views: 144.8ms | ActiveRecord: 0.0ms)
43
+ Rendered reports/sample.html.erb within layouts/application (1.2ms)
44
+ Completed 200 OK in 203ms (Views: 202.2ms | ActiveRecord: 0.0ms)
2236
45
   (0.1ms) rollback transaction
2237
46
   (0.1ms) begin transaction
2238
- ---------------------------------------
2239
- NavigationTest: test_Renders_pdf_action
2240
- ---------------------------------------
2241
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:19:51 -0700
2242
- Processing by ReportsController#sample as PDF
2243
- Rendering reports/sample.pdf.prawn
2244
- Rendered reports/sample.pdf.prawn (47.9ms)
2245
- Completed 200 OK in 50ms (Views: 49.3ms | ActiveRecord: 0.0ms)
2246
-  (0.5ms) rollback transaction
2247
-  (0.1ms) begin transaction
2248
- ---------------------
2249
- NavigationTest: test_
2250
- ---------------------
47
+ ------------------------------------------------------------
48
+ NavigationTest: test_Respects_the_'disposition'_option_alone
49
+ ------------------------------------------------------------
50
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
51
+ Processing by ReportsController#custom_disposition as PDF
52
+ Rendering reports/custom_disposition.pdf.prawn
53
+ Rendered reports/custom_disposition.pdf.prawn (16.4ms)
54
+ Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.0ms)
2251
55
   (0.1ms) rollback transaction
2252
56
   (0.1ms) begin transaction
2253
57
  ---------------------------------------------
@@ -2259,106 +63,89 @@ NavigationTest: test_Registers_:pdf_mime_type
2259
63
  NavigationTest: test_Renders_pdf_to_string
2260
64
  ------------------------------------------
2261
65
  Rendering reports/sample.pdf.prawn
2262
- Rendered reports/sample.pdf.prawn (10.5ms)
2263
-  (0.1ms) rollback transaction
2264
-  (0.1ms) begin transaction
2265
- ---------------------------
2266
- PrawnRailsTest: test_config
2267
- ---------------------------
66
+ Rendered reports/sample.pdf.prawn (72.0ms)
2268
67
   (0.1ms) rollback transaction
2269
68
   (0.1ms) begin transaction
2270
- ---------------------------
2271
- PrawnRailsTest: test_config
2272
- ---------------------------
69
+ ----------------------------------------------
70
+ NavigationTest: test_Renders_sample_pdf_action
71
+ ----------------------------------------------
72
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
73
+ Processing by ReportsController#sample as PDF
74
+ Rendering reports/sample.pdf.prawn
75
+ Rendered reports/sample.pdf.prawn (20.5ms)
76
+ Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.0ms)
2273
77
   (0.1ms) rollback transaction
2274
78
   (0.1ms) begin transaction
2275
- ------------------------------------------------------
2276
- NavigationTest: test_Registers_:prawn_template_handler
2277
- ------------------------------------------------------
79
+ --------------------------------------------------------------------
80
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
81
+ --------------------------------------------------------------------
82
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2019-08-07 11:33:33 -0700
83
+ Processing by ReportsController#custom_headers as PDF
84
+ Rendering reports/custom.pdf.prawn
85
+ Rendered reports/custom.pdf.prawn (1.9ms)
86
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
2278
87
   (0.1ms) rollback transaction
2279
88
   (0.1ms) begin transaction
2280
- ------------------------------------------
2281
- NavigationTest: test_Renders_pdf_to_string
2282
- ------------------------------------------
89
+ -----------------------------------------------
90
+ NavigationTest: test_render_to_string_in_mailer
91
+ -----------------------------------------------
2283
92
  Rendering reports/sample.pdf.prawn
2284
- Rendered reports/sample.pdf.prawn (37.2ms)
2285
-  (0.1ms) rollback transaction
2286
-  (0.1ms) begin transaction
2287
- ---------------------------------------------
2288
- NavigationTest: test_Registers_:pdf_mime_type
2289
- ---------------------------------------------
93
+ Rendered reports/sample.pdf.prawn (19.5ms)
94
+ Rendering reports_mailer/send_report.html.erb
95
+ Rendered reports_mailer/send_report.html.erb (0.4ms)
96
+ ReportsMailer#send_report: processed outbound mail in 280.1ms
2290
97
   (0.1ms) rollback transaction
2291
98
   (0.1ms) begin transaction
2292
- ----------------------------------------
2293
- NavigationTest: test_Renders_html_action
2294
- ----------------------------------------
2295
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:21:01 -0700
2296
- Processing by ReportsController#sample as HTML
2297
- Rendering reports/sample.html.erb within layouts/application
2298
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2299
- Completed 200 OK in 136ms (Views: 134.7ms | ActiveRecord: 0.0ms)
99
+ ---------------------------------------------------------
100
+ NavigationTest: test_Respects_the_'filename'_option_alone
101
+ ---------------------------------------------------------
102
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2019-08-07 11:33:34 -0700
103
+ Processing by ReportsController#custom_filename as PDF
104
+ Rendering reports/custom_filename.pdf.prawn
105
+ Rendered reports/custom_filename.pdf.prawn (2.1ms)
106
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
2300
107
   (0.1ms) rollback transaction
2301
108
   (0.1ms) begin transaction
2302
- ---------------------
2303
- NavigationTest: test_
2304
- ---------------------
109
+ --------------------------------------------------------------
110
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
111
+ --------------------------------------------------------------
2305
112
   (0.1ms) rollback transaction
2306
113
   (0.1ms) begin transaction
2307
- ---------------------------------------
2308
- NavigationTest: test_Renders_pdf_action
2309
- ---------------------------------------
2310
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:21:01 -0700
2311
- Processing by ReportsController#sample as PDF
2312
- Rendering reports/sample.pdf.prawn
2313
- Rendered reports/sample.pdf.prawn (20.1ms)
2314
- Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.0ms)
2315
-  (0.2ms) rollback transaction
2316
-  (0.1ms) begin transaction
2317
- ---------------------
2318
- NavigationTest: test_
2319
- ---------------------
2320
-  (0.1ms) rollback transaction
2321
-  (0.2ms) begin transaction
2322
- ---------------------------------------------
2323
- NavigationTest: test_Registers_:pdf_mime_type
2324
- ---------------------------------------------
114
+ ----------------------------------------------
115
+ PrawnRailsTest: test_text_can_take_non_strings
116
+ ----------------------------------------------
2325
117
   (0.1ms) rollback transaction
118
+  (1.7ms) SELECT sqlite_version(*)
119
+  (0.1ms) SELECT sqlite_version(*)
2326
120
   (0.1ms) begin transaction
2327
- ---------------------------------------
2328
- NavigationTest: test_Renders_pdf_action
2329
- ---------------------------------------
2330
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:21:15 -0700
2331
- Processing by ReportsController#sample as PDF
2332
- Rendering reports/sample.pdf.prawn
2333
- Rendered reports/sample.pdf.prawn (47.5ms)
2334
- Completed 200 OK in 52ms (Views: 51.2ms | ActiveRecord: 0.0ms)
2335
-  (0.2ms) rollback transaction
2336
-  (0.1ms) begin transaction
2337
- ----------------------------------------
2338
- NavigationTest: test_Renders_html_action
2339
- ----------------------------------------
2340
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:21:16 -0700
2341
- Processing by ReportsController#sample as HTML
2342
- Rendering reports/sample.html.erb within layouts/application
2343
- Rendered reports/sample.html.erb within layouts/application (1.0ms)
2344
- Completed 200 OK in 122ms (Views: 121.6ms | ActiveRecord: 0.0ms)
121
+ --------------------------------------------------------------
122
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
123
+ --------------------------------------------------------------
2345
124
   (0.1ms) rollback transaction
2346
125
   (0.1ms) begin transaction
2347
- ------------------------------------------
2348
- NavigationTest: test_Renders_pdf_to_string
2349
- ------------------------------------------
2350
- Rendering reports/sample.pdf.prawn
2351
- Rendered reports/sample.pdf.prawn (10.5ms)
126
+ ----------------------------------------------
127
+ PrawnRailsTest: test_text_can_take_non_strings
128
+ ----------------------------------------------
2352
129
   (0.1ms) rollback transaction
2353
130
   (0.1ms) begin transaction
2354
- ------------------------------------------------------
2355
- NavigationTest: test_Registers_:prawn_template_handler
2356
- ------------------------------------------------------
131
+ --------------------------------------------------------------------
132
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
133
+ --------------------------------------------------------------------
134
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2020-04-29 20:39:33 -0700
135
+ Processing by ReportsController#custom_headers as PDF
136
+ Rendering reports/custom.pdf.prawn
137
+ Rendered reports/custom.pdf.prawn (Duration: 3.8ms | Allocations: 2450)
138
+ Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms | Allocations: 4769)
2357
139
   (0.1ms) rollback transaction
2358
140
   (0.1ms) begin transaction
2359
- ---------------------------
2360
- PrawnRailsTest: test_config
2361
- ---------------------------
141
+ -----------------------------------------------------------------------
142
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
143
+ -----------------------------------------------------------------------
144
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2020-04-29 20:39:33 -0700
145
+ Processing by ReportsController#custom as PDF
146
+ Rendering reports/custom.pdf.prawn
147
+ Rendered reports/custom.pdf.prawn (Duration: 11.0ms | Allocations: 2224)
148
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms | Allocations: 2505)
2362
149
   (0.1ms) rollback transaction
2363
150
   (0.1ms) begin transaction
2364
151
  ---------------------------------------------
@@ -2366,46 +153,24 @@ NavigationTest: test_Registers_:pdf_mime_type
2366
153
  ---------------------------------------------
2367
154
   (0.1ms) rollback transaction
2368
155
   (0.1ms) begin transaction
2369
- ------------------------------------------------------
2370
- NavigationTest: test_Registers_:prawn_template_handler
2371
- ------------------------------------------------------
2372
-  (0.1ms) rollback transaction
2373
-  (0.1ms) begin transaction
2374
- ---------------------
2375
- NavigationTest: test_
2376
- ---------------------
2377
-  (0.1ms) rollback transaction
2378
-  (0.1ms) begin transaction
2379
- ----------------------------------------
2380
- NavigationTest: test_Renders_html_action
2381
- ----------------------------------------
2382
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:22:05 -0700
2383
- Processing by ReportsController#sample as HTML
2384
- Rendering reports/sample.html.erb within layouts/application
2385
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2386
- Completed 200 OK in 148ms (Views: 147.1ms | ActiveRecord: 0.0ms)
156
+ ------------------------------------------------------------------------------------
157
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
158
+ ------------------------------------------------------------------------------------
159
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2020-04-29 20:39:33 -0700
160
+ Processing by ReportsController#table as PDF
161
+ Rendering reports/table.pdf.prawn
162
+ Rendered reports/table.pdf.prawn (Duration: 17.8ms | Allocations: 11221)
163
+ Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms | Allocations: 11636)
2387
164
   (0.1ms) rollback transaction
2388
165
   (0.1ms) begin transaction
2389
- ---------------------------------------
2390
- NavigationTest: test_Renders_pdf_action
2391
- ---------------------------------------
2392
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:22:05 -0700
2393
- Processing by ReportsController#sample as PDF
2394
- Rendering reports/sample.pdf.prawn
2395
- Rendered reports/sample.pdf.prawn (47.0ms)
2396
- Completed 200 OK in 49ms (Views: 48.4ms | ActiveRecord: 0.0ms)
2397
-  (0.5ms) rollback transaction
2398
-  (0.1ms) begin transaction
2399
- ------------------------------------------
2400
- NavigationTest: test_Renders_pdf_to_string
2401
- ------------------------------------------
166
+ -----------------------------------------------
167
+ NavigationTest: test_render_to_string_in_mailer
168
+ -----------------------------------------------
2402
169
  Rendering reports/sample.pdf.prawn
2403
- Rendered reports/sample.pdf.prawn (17.1ms)
2404
-  (0.2ms) rollback transaction
2405
-  (0.1ms) begin transaction
2406
- ---------------------------
2407
- PrawnRailsTest: test_config
2408
- ---------------------------
170
+ Rendered reports/sample.pdf.prawn (Duration: 26.6ms | Allocations: 18075)
171
+ Rendering reports_mailer/send_report.html.erb
172
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.7ms | Allocations: 82)
173
+ ReportsMailer#send_report: processed outbound mail in 41.3ms
2409
174
   (0.1ms) rollback transaction
2410
175
   (0.1ms) begin transaction
2411
176
  ------------------------------------------------------
@@ -2417,158 +182,104 @@ NavigationTest: test_Registers_:prawn_template_handler
2417
182
  NavigationTest: test_Renders_pdf_to_string
2418
183
  ------------------------------------------
2419
184
  Rendering reports/sample.pdf.prawn
2420
- Rendered reports/sample.pdf.prawn (48.7ms)
2421
-  (0.1ms) rollback transaction
2422
-  (0.1ms) begin transaction
2423
- ---------------------------------------------
2424
- NavigationTest: test_Registers_:pdf_mime_type
2425
- ---------------------------------------------
185
+ Rendered reports/sample.pdf.prawn (Duration: 24.4ms | Allocations: 14104)
2426
186
   (0.1ms) rollback transaction
2427
187
   (0.1ms) begin transaction
2428
- ----------------------------------------
2429
- NavigationTest: test_Renders_html_action
2430
- ----------------------------------------
2431
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:38:55 -0700
2432
- Processing by ReportsController#sample as HTML
2433
- Rendering reports/sample.html.erb within layouts/application
2434
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2435
- Completed 200 OK in 158ms (Views: 156.7ms | ActiveRecord: 0.0ms)
2436
-  (0.2ms) rollback transaction
2437
-  (0.1ms) begin transaction
2438
188
  ----------------------------------------------
2439
189
  NavigationTest: test_Renders_sample_pdf_action
2440
190
  ----------------------------------------------
2441
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:38:56 -0700
191
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2020-04-29 20:39:34 -0700
2442
192
  Processing by ReportsController#sample as PDF
2443
193
  Rendering reports/sample.pdf.prawn
2444
- Rendered reports/sample.pdf.prawn (20.8ms)
2445
- Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.0ms)
194
+ Rendered reports/sample.pdf.prawn (Duration: 23.7ms | Allocations: 14115)
195
+ Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.0ms | Allocations: 14535)
2446
196
   (0.1ms) rollback transaction
2447
197
   (0.1ms) begin transaction
2448
- ---------------------------------------------
2449
- NavigationTest: test_Renders_table_pdf_action
2450
- ---------------------------------------------
2451
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:38:56 -0700
2452
-  (0.1ms) rollback transaction
2453
-  (1.0ms) begin transaction
2454
- ---------------------------
2455
- PrawnRailsTest: test_config
2456
- ---------------------------
198
+ -----------------------------------------------------------------
199
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
200
+ -----------------------------------------------------------------
201
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2020-04-29 20:39:34 -0700
202
+ Processing by ReportsController#ivar_filename as PDF
203
+ Rendering reports/custom.pdf.prawn
204
+ Rendered reports/custom.pdf.prawn (Duration: 2.2ms | Allocations: 2227)
205
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms | Allocations: 2484)
2457
206
   (0.1ms) rollback transaction
2458
207
   (0.1ms) begin transaction
2459
208
  ----------------------------------------
2460
209
  NavigationTest: test_Renders_html_action
2461
210
  ----------------------------------------
2462
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:40:04 -0700
211
+ Started GET "/reports/sample" for 127.0.0.1 at 2020-04-29 20:39:34 -0700
2463
212
  Processing by ReportsController#sample as HTML
2464
213
  Rendering reports/sample.html.erb within layouts/application
2465
- Rendered reports/sample.html.erb within layouts/application (0.7ms)
2466
- Completed 200 OK in 127ms (Views: 125.7ms | ActiveRecord: 0.0ms)
2467
-  (0.1ms) rollback transaction
2468
-  (0.0ms) begin transaction
2469
- ----------------------------------------------
2470
- NavigationTest: test_Renders_sample_pdf_action
2471
- ----------------------------------------------
2472
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:40:05 -0700
2473
- Processing by ReportsController#sample as PDF
2474
- Rendering reports/sample.pdf.prawn
2475
- Rendered reports/sample.pdf.prawn (76.6ms)
2476
- Completed 200 OK in 79ms (Views: 77.9ms | ActiveRecord: 0.0ms)
214
+ Rendered reports/sample.html.erb within layouts/application (Duration: 0.6ms | Allocations: 77)
215
+ Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms | Allocations: 4611)
2477
216
   (0.1ms) rollback transaction
2478
217
   (0.1ms) begin transaction
2479
- ------------------------------------------
2480
- NavigationTest: test_Renders_pdf_to_string
2481
- ------------------------------------------
2482
- Rendering reports/sample.pdf.prawn
2483
- Rendered reports/sample.pdf.prawn (27.2ms)
2484
-  (13.7ms) rollback transaction
2485
-  (0.1ms) begin transaction
2486
- ---------------------------------------------
2487
- NavigationTest: test_Registers_:pdf_mime_type
2488
- ---------------------------------------------
2489
-  (0.0ms) rollback transaction
2490
-  (0.0ms) begin transaction
2491
- ------------------------------------------------------
2492
- NavigationTest: test_Registers_:prawn_template_handler
2493
- ------------------------------------------------------
2494
-  (0.0ms) rollback transaction
2495
-  (0.0ms) begin transaction
2496
- ---------------------------------------------
2497
- NavigationTest: test_Renders_table_pdf_action
2498
- ---------------------------------------------
2499
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:40:05 -0700
2500
-  (0.0ms) rollback transaction
2501
-  (0.0ms) begin transaction
2502
- ---------------------------
2503
- PrawnRailsTest: test_config
2504
- ---------------------------
2505
-  (0.0ms) rollback transaction
218
+ ---------------------------------------------------------
219
+ NavigationTest: test_Respects_the_'filename'_option_alone
220
+ ---------------------------------------------------------
221
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2020-04-29 20:39:34 -0700
222
+ Processing by ReportsController#custom_filename as PDF
223
+ Rendering reports/custom_filename.pdf.prawn
224
+ Rendered reports/custom_filename.pdf.prawn (Duration: 2.9ms | Allocations: 2289)
225
+ Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 2699)
226
+  (0.1ms) rollback transaction
2506
227
   (0.1ms) begin transaction
2507
- ---------------------------
2508
- PrawnRailsTest: test_config
2509
- ---------------------------
228
+ ------------------------------------------------------------
229
+ NavigationTest: test_Respects_the_'disposition'_option_alone
230
+ ------------------------------------------------------------
231
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2020-04-29 20:39:34 -0700
232
+ Processing by ReportsController#custom_disposition as PDF
233
+ Rendering reports/custom_disposition.pdf.prawn
234
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 3.8ms | Allocations: 2244)
235
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms | Allocations: 2652)
2510
236
   (0.1ms) rollback transaction
237
+  (1.3ms) SELECT sqlite_version(*)
238
+  (0.1ms) SELECT sqlite_version(*)
2511
239
   (0.1ms) begin transaction
2512
240
  ----------------------------------------
2513
241
  NavigationTest: test_Renders_html_action
2514
242
  ----------------------------------------
2515
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:40:33 -0700
243
+ Started GET "/reports/sample" for 127.0.0.1 at 2020-04-29 20:39:58 -0700
2516
244
  Processing by ReportsController#sample as HTML
2517
245
  Rendering reports/sample.html.erb within layouts/application
2518
- Rendered reports/sample.html.erb within layouts/application (1.1ms)
2519
- Completed 200 OK in 145ms (Views: 144.1ms | ActiveRecord: 0.0ms)
246
+ Rendered reports/sample.html.erb within layouts/application (Duration: 2.4ms | Allocations: 239)
247
+ Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.0ms | Allocations: 4535)
2520
248
   (0.1ms) rollback transaction
2521
249
   (0.1ms) begin transaction
2522
- ----------------------------------------------
2523
- NavigationTest: test_Renders_sample_pdf_action
2524
- ----------------------------------------------
2525
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:40:33 -0700
2526
- Processing by ReportsController#sample as PDF
2527
- Rendering reports/sample.pdf.prawn
2528
- Rendered reports/sample.pdf.prawn (47.1ms)
2529
- Completed 200 OK in 49ms (Views: 48.6ms | ActiveRecord: 0.0ms)
2530
-  (0.5ms) rollback transaction
2531
-  (0.1ms) begin transaction
2532
- ---------------------------------------------
2533
- NavigationTest: test_Registers_:pdf_mime_type
2534
- ---------------------------------------------
2535
-  (0.2ms) rollback transaction
2536
-  (0.1ms) begin transaction
2537
- ------------------------------------------
2538
- NavigationTest: test_Renders_pdf_to_string
2539
- ------------------------------------------
2540
- Rendering reports/sample.pdf.prawn
2541
- Rendered reports/sample.pdf.prawn (17.4ms)
2542
-  (0.4ms) rollback transaction
2543
-  (0.1ms) begin transaction
2544
250
  ------------------------------------------------------
2545
251
  NavigationTest: test_Registers_:prawn_template_handler
2546
252
  ------------------------------------------------------
2547
253
   (0.1ms) rollback transaction
2548
254
   (0.1ms) begin transaction
2549
- ---------------------------------------------
2550
- NavigationTest: test_Renders_table_pdf_action
2551
- ---------------------------------------------
2552
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:40:34 -0700
2553
- Processing by ReportsController#table as PDF
2554
- Rendering reports/table.pdf.prawn
2555
- Rendered reports/table.pdf.prawn (16.2ms)
2556
- Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.0ms)
2557
-  (0.2ms) rollback transaction
255
+ -----------------------------------------------------------------
256
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
257
+ -----------------------------------------------------------------
258
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2020-04-29 20:39:58 -0700
259
+ Processing by ReportsController#ivar_filename as PDF
260
+ Rendering reports/custom.pdf.prawn
261
+ Rendered reports/custom.pdf.prawn (Duration: 47.4ms | Allocations: 49703)
262
+ Completed 200 OK in 53ms (Views: 52.3ms | ActiveRecord: 0.0ms | Allocations: 50970)
263
+  (0.1ms) rollback transaction
2558
264
   (0.1ms) begin transaction
2559
- ---------------------------
2560
- PrawnRailsTest: test_config
2561
- ---------------------------
265
+ -----------------------------------------------
266
+ NavigationTest: test_render_to_string_in_mailer
267
+ -----------------------------------------------
268
+ Rendering reports/sample.pdf.prawn
269
+ Rendered reports/sample.pdf.prawn (Duration: 25.1ms | Allocations: 18088)
270
+ Rendering reports_mailer/send_report.html.erb
271
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.3ms | Allocations: 78)
272
+ ReportsMailer#send_report: processed outbound mail in 34.7ms
2562
273
   (0.1ms) rollback transaction
2563
274
   (0.1ms) begin transaction
2564
- ----------------------------------------
2565
- NavigationTest: test_Renders_html_action
2566
- ----------------------------------------
2567
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:41:49 -0700
2568
- Processing by ReportsController#sample as HTML
2569
- Rendering reports/sample.html.erb within layouts/application
2570
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2571
- Completed 200 OK in 147ms (Views: 146.1ms | ActiveRecord: 0.0ms)
275
+ --------------------------------------------------------------------
276
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
277
+ --------------------------------------------------------------------
278
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2020-04-29 20:39:59 -0700
279
+ Processing by ReportsController#custom_headers as PDF
280
+ Rendering reports/custom.pdf.prawn
281
+ Rendered reports/custom.pdf.prawn (Duration: 2.2ms | Allocations: 2225)
282
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms | Allocations: 2485)
2572
283
   (0.1ms) rollback transaction
2573
284
   (0.1ms) begin transaction
2574
285
  ---------------------------------------------
@@ -2576,88 +287,118 @@ NavigationTest: test_Registers_:pdf_mime_type
2576
287
  ---------------------------------------------
2577
288
   (0.1ms) rollback transaction
2578
289
   (0.1ms) begin transaction
2579
- ------------------------------------------
2580
- NavigationTest: test_Renders_pdf_to_string
2581
- ------------------------------------------
2582
- Rendering reports/sample.pdf.prawn
2583
- Rendered reports/sample.pdf.prawn (47.4ms)
2584
-  (0.4ms) rollback transaction
2585
-  (0.1ms) begin transaction
2586
- ------------------------------------------------------
2587
- NavigationTest: test_Registers_:prawn_template_handler
2588
- ------------------------------------------------------
2589
-  (0.1ms) rollback transaction
2590
-  (0.2ms) begin transaction
2591
290
  ----------------------------------------------
2592
291
  NavigationTest: test_Renders_sample_pdf_action
2593
292
  ----------------------------------------------
2594
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:41:49 -0700
293
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2020-04-29 20:39:59 -0700
2595
294
  Processing by ReportsController#sample as PDF
2596
295
  Rendering reports/sample.pdf.prawn
2597
- Rendered reports/sample.pdf.prawn (17.5ms)
2598
- Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.0ms)
2599
-  (0.4ms) rollback transaction
296
+ Rendered reports/sample.pdf.prawn (Duration: 23.2ms | Allocations: 14111)
297
+ Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.0ms | Allocations: 14529)
298
+  (0.1ms) rollback transaction
2600
299
   (0.1ms) begin transaction
2601
- ---------------------------------------------
2602
- NavigationTest: test_Renders_table_pdf_action
2603
- ---------------------------------------------
2604
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:41:49 -0700
300
+ ------------------------------------------------------------------------------------
301
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
302
+ ------------------------------------------------------------------------------------
303
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2020-04-29 20:39:59 -0700
2605
304
  Processing by ReportsController#table as PDF
2606
305
  Rendering reports/table.pdf.prawn
2607
- Rendered reports/table.pdf.prawn (16.4ms)
2608
- Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
2609
-  (0.3ms) rollback transaction
306
+ Rendered reports/table.pdf.prawn (Duration: 15.4ms | Allocations: 11203)
307
+ Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.0ms | Allocations: 11619)
308
+  (0.1ms) rollback transaction
2610
309
   (0.1ms) begin transaction
2611
- ------------------------------------------------------
2612
- NavigationTest: test_Registers_:prawn_template_handler
2613
- ------------------------------------------------------
310
+ -----------------------------------------------------------------------
311
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
312
+ -----------------------------------------------------------------------
313
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2020-04-29 20:39:59 -0700
314
+ Processing by ReportsController#custom as PDF
315
+ Rendering reports/custom.pdf.prawn
316
+ Rendered reports/custom.pdf.prawn (Duration: 2.2ms | Allocations: 2223)
317
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms | Allocations: 2497)
2614
318
   (0.1ms) rollback transaction
2615
319
   (0.1ms) begin transaction
2616
320
  ------------------------------------------
2617
321
  NavigationTest: test_Renders_pdf_to_string
2618
322
  ------------------------------------------
2619
323
  Rendering reports/sample.pdf.prawn
2620
- Rendered reports/sample.pdf.prawn (46.4ms)
324
+ Rendered reports/sample.pdf.prawn (Duration: 21.3ms | Allocations: 14105)
325
+  (0.1ms) rollback transaction
326
+  (0.1ms) begin transaction
327
+ ---------------------------------------------------------
328
+ NavigationTest: test_Respects_the_'filename'_option_alone
329
+ ---------------------------------------------------------
330
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2020-04-29 20:39:59 -0700
331
+ Processing by ReportsController#custom_filename as PDF
332
+ Rendering reports/custom_filename.pdf.prawn
333
+ Rendered reports/custom_filename.pdf.prawn (Duration: 2.7ms | Allocations: 2291)
334
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms | Allocations: 2702)
335
+  (0.1ms) rollback transaction
336
+  (0.1ms) begin transaction
337
+ ------------------------------------------------------------
338
+ NavigationTest: test_Respects_the_'disposition'_option_alone
339
+ ------------------------------------------------------------
340
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2020-04-29 20:39:59 -0700
341
+ Processing by ReportsController#custom_disposition as PDF
342
+ Rendering reports/custom_disposition.pdf.prawn
343
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 2.5ms | Allocations: 2250)
344
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms | Allocations: 2659)
345
+  (0.1ms) rollback transaction
346
+  (0.1ms) begin transaction
347
+ --------------------------------------------------------------
348
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
349
+ --------------------------------------------------------------
2621
350
   (0.1ms) rollback transaction
2622
351
   (0.1ms) begin transaction
2623
352
  ----------------------------------------------
2624
- NavigationTest: test_Renders_sample_pdf_action
353
+ PrawnRailsTest: test_text_can_take_non_strings
2625
354
  ----------------------------------------------
2626
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:42:09 -0700
2627
- Processing by ReportsController#sample as PDF
2628
- Rendering reports/sample.pdf.prawn
2629
- Rendered reports/sample.pdf.prawn (15.7ms)
2630
- Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
2631
355
   (0.1ms) rollback transaction
356
+  (1.0ms) SELECT sqlite_version(*)
357
+  (0.1ms) SELECT sqlite_version(*)
2632
358
   (0.1ms) begin transaction
2633
- ---------------------------------------------
2634
- NavigationTest: test_Registers_:pdf_mime_type
2635
- ---------------------------------------------
359
+ ------------------------------------------------------------
360
+ NavigationTest: test_Respects_the_'disposition'_option_alone
361
+ ------------------------------------------------------------
362
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2020-04-29 20:41:13 -0700
363
+ Processing by ReportsController#custom_disposition as PDF
364
+ Rendering reports/custom_disposition.pdf.prawn
365
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 63.5ms | Allocations: 49815)
366
+ Completed 200 OK in 77ms (Views: 73.6ms | ActiveRecord: 0.0ms | Allocations: 52151)
367
+  (0.1ms) rollback transaction
368
+  (0.1ms) begin transaction
369
+ ---------------------------------------------------------
370
+ NavigationTest: test_Respects_the_'filename'_option_alone
371
+ ---------------------------------------------------------
372
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2020-04-29 20:41:13 -0700
373
+ Processing by ReportsController#custom_filename as PDF
374
+ Rendering reports/custom_filename.pdf.prawn
375
+ Rendered reports/custom_filename.pdf.prawn (Duration: 2.4ms | Allocations: 2290)
376
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms | Allocations: 2700)
2636
377
   (0.1ms) rollback transaction
2637
378
   (0.1ms) begin transaction
2638
379
  ---------------------------------------------
2639
- NavigationTest: test_Renders_table_pdf_action
380
+ NavigationTest: test_Registers_:pdf_mime_type
2640
381
  ---------------------------------------------
2641
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:42:09 -0700
2642
- Processing by ReportsController#table as PDF
2643
- Rendering reports/table.pdf.prawn
2644
- Rendered reports/table.pdf.prawn (13.3ms)
2645
- Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.0ms)
2646
-  (0.2ms) rollback transaction
382
+  (0.1ms) rollback transaction
2647
383
   (0.1ms) begin transaction
2648
- ----------------------------------------
2649
- NavigationTest: test_Renders_html_action
2650
- ----------------------------------------
2651
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:42:09 -0700
2652
- Processing by ReportsController#sample as HTML
2653
- Rendering reports/sample.html.erb within layouts/application
2654
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2655
- Completed 200 OK in 210ms (Views: 209.3ms | ActiveRecord: 0.0ms)
384
+ ----------------------------------------------
385
+ NavigationTest: test_Renders_sample_pdf_action
386
+ ----------------------------------------------
387
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2020-04-29 20:41:13 -0700
388
+ Processing by ReportsController#sample as PDF
389
+ Rendering reports/sample.pdf.prawn
390
+ Rendered reports/sample.pdf.prawn (Duration: 26.7ms | Allocations: 18094)
391
+ Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.0ms | Allocations: 18513)
2656
392
   (0.1ms) rollback transaction
2657
393
   (0.1ms) begin transaction
2658
- ---------------------------
2659
- PrawnRailsTest: test_config
2660
- ---------------------------
394
+ ------------------------------------------------------------------------------------
395
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
396
+ ------------------------------------------------------------------------------------
397
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2020-04-29 20:41:14 -0700
398
+ Processing by ReportsController#table as PDF
399
+ Rendering reports/table.pdf.prawn
400
+ Rendered reports/table.pdf.prawn (Duration: 22.9ms | Allocations: 11205)
401
+ Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.0ms | Allocations: 11621)
2661
402
   (0.1ms) rollback transaction
2662
403
   (0.1ms) begin transaction
2663
404
  ------------------------------------------------------
@@ -2665,136 +406,369 @@ NavigationTest: test_Registers_:prawn_template_handler
2665
406
  ------------------------------------------------------
2666
407
   (0.1ms) rollback transaction
2667
408
   (0.1ms) begin transaction
2668
- ---------------------------------------------
2669
- NavigationTest: test_Registers_:pdf_mime_type
2670
- ---------------------------------------------
409
+ -----------------------------------------------------------------
410
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
411
+ -----------------------------------------------------------------
412
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2020-04-29 20:41:14 -0700
413
+ Processing by ReportsController#ivar_filename as PDF
414
+ Rendering reports/custom.pdf.prawn
415
+ Rendered reports/custom.pdf.prawn (Duration: 2.6ms | Allocations: 2292)
416
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms | Allocations: 2688)
417
+  (0.1ms) rollback transaction
418
+  (0.1ms) begin transaction
419
+ --------------------------------------------------------------------
420
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
421
+ --------------------------------------------------------------------
422
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2020-04-29 20:41:14 -0700
423
+ Processing by ReportsController#custom_headers as PDF
424
+ Rendering reports/custom.pdf.prawn
425
+ Rendered reports/custom.pdf.prawn (Duration: 2.3ms | Allocations: 2221)
426
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms | Allocations: 2480)
2671
427
   (0.1ms) rollback transaction
2672
-  (0.8ms) begin transaction
428
+  (0.1ms) begin transaction
2673
429
  ----------------------------------------
2674
430
  NavigationTest: test_Renders_html_action
2675
431
  ----------------------------------------
2676
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:43:00 -0700
432
+ Started GET "/reports/sample" for 127.0.0.1 at 2020-04-29 20:41:14 -0700
2677
433
  Processing by ReportsController#sample as HTML
2678
434
  Rendering reports/sample.html.erb within layouts/application
2679
- Rendered reports/sample.html.erb within layouts/application (0.8ms)
2680
- Completed 200 OK in 145ms (Views: 144.3ms | ActiveRecord: 0.0ms)
435
+ Rendered reports/sample.html.erb within layouts/application (Duration: 0.4ms | Allocations: 81)
436
+ Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.0ms | Allocations: 7880)
437
+  (0.2ms) rollback transaction
438
+  (0.2ms) begin transaction
439
+ -----------------------------------------------------------------------
440
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
441
+ -----------------------------------------------------------------------
442
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2020-04-29 20:41:14 -0700
443
+ Processing by ReportsController#custom as PDF
444
+ Rendering reports/custom.pdf.prawn
445
+ Rendered reports/custom.pdf.prawn (Duration: 2.1ms | Allocations: 2223)
446
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms | Allocations: 2497)
2681
447
   (0.1ms) rollback transaction
2682
448
   (0.1ms) begin transaction
2683
449
  ------------------------------------------
2684
450
  NavigationTest: test_Renders_pdf_to_string
2685
451
  ------------------------------------------
2686
452
  Rendering reports/sample.pdf.prawn
2687
- Rendered reports/sample.pdf.prawn (47.4ms)
2688
-  (0.5ms) rollback transaction
453
+ Rendered reports/sample.pdf.prawn (Duration: 20.6ms | Allocations: 14112)
454
+  (0.1ms) rollback transaction
455
+  (0.1ms) begin transaction
456
+ -----------------------------------------------
457
+ NavigationTest: test_render_to_string_in_mailer
458
+ -----------------------------------------------
459
+ Rendering reports/sample.pdf.prawn
460
+ Rendered reports/sample.pdf.prawn (Duration: 21.7ms | Allocations: 14101)
461
+ Rendering reports_mailer/send_report.html.erb
462
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.3ms | Allocations: 75)
463
+ ReportsMailer#send_report: processed outbound mail in 31.4ms
464
+  (0.1ms) rollback transaction
465
+  (0.1ms) begin transaction
466
+ --------------------------------------------------------------
467
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
468
+ --------------------------------------------------------------
469
+  (0.1ms) rollback transaction
2689
470
   (0.1ms) begin transaction
2690
471
  ----------------------------------------------
2691
- NavigationTest: test_Renders_sample_pdf_action
472
+ PrawnRailsTest: test_text_can_take_non_strings
2692
473
  ----------------------------------------------
2693
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:43:00 -0700
2694
- Processing by ReportsController#sample as PDF
2695
- Rendering reports/sample.pdf.prawn
2696
- Rendered reports/sample.pdf.prawn (17.3ms)
2697
- Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms)
2698
-  (0.4ms) rollback transaction
474
+  (0.1ms) rollback transaction
475
+  (1.0ms) SELECT sqlite_version(*)
476
+  (0.1ms) SELECT sqlite_version(*)
2699
477
   (0.1ms) begin transaction
2700
- ---------------------------------------------
2701
- NavigationTest: test_Renders_table_pdf_action
2702
- ---------------------------------------------
2703
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:43:00 -0700
478
+ ------------------------------------------------------------------------------------
479
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
480
+ ------------------------------------------------------------------------------------
481
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2021-02-01 23:59:54 -0800
2704
482
  Processing by ReportsController#table as PDF
2705
483
  Rendering reports/table.pdf.prawn
2706
- Rendered reports/table.pdf.prawn (16.3ms)
2707
- Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.0ms)
484
+ Rendered reports/table.pdf.prawn (Duration: 50.9ms | Allocations: 58777)
485
+ Completed 200 OK in 57ms (Views: 54.9ms | ActiveRecord: 0.0ms | Allocations: 61121)
2708
486
   (0.1ms) rollback transaction
2709
487
   (0.1ms) begin transaction
2710
- ---------------------------
2711
- PrawnRailsTest: test_config
2712
- ---------------------------
488
+ -----------------------------------------------------------------
489
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
490
+ -----------------------------------------------------------------
491
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
492
+ Processing by ReportsController#ivar_filename as PDF
493
+ Rendering reports/custom.pdf.prawn
494
+ Rendered reports/custom.pdf.prawn (Duration: 2.2ms | Allocations: 2309)
495
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms | Allocations: 2706)
2713
496
   (0.1ms) rollback transaction
2714
-  (0.1ms) begin transaction
2715
- ---------------------------
2716
- PrawnRailsTest: test_config
2717
- ---------------------------
497
+  (0.0ms) begin transaction
498
+ ----------------------------------------------
499
+ NavigationTest: test_Renders_sample_pdf_action
500
+ ----------------------------------------------
501
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
502
+ Processing by ReportsController#sample as PDF
503
+ Rendering reports/sample.pdf.prawn
504
+ Rendered reports/sample.pdf.prawn (Duration: 27.0ms | Allocations: 18078)
505
+ Completed 200 OK in 28ms (Views: 27.6ms | ActiveRecord: 0.0ms | Allocations: 18497)
2718
506
   (0.1ms) rollback transaction
2719
-  (0.1ms) begin transaction
507
+  (0.2ms) begin transaction
508
+ ------------------------------------------------------------
509
+ NavigationTest: test_Respects_the_'disposition'_option_alone
510
+ ------------------------------------------------------------
511
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
512
+ Processing by ReportsController#custom_disposition as PDF
513
+ Rendering reports/custom_disposition.pdf.prawn
514
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 8.3ms | Allocations: 2250)
515
+ Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms | Allocations: 2658)
516
+  (0.1ms) rollback transaction
517
+  (0.0ms) begin transaction
518
+ -----------------------------------------------
519
+ NavigationTest: test_render_to_string_in_mailer
520
+ -----------------------------------------------
521
+ Rendering reports/sample.pdf.prawn
522
+ Rendered reports/sample.pdf.prawn (Duration: 19.2ms | Allocations: 14111)
523
+ Rendering reports_mailer/send_report.html.erb
524
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.4ms | Allocations: 83)
525
+ ReportsMailer#send_report: processed outbound mail in 33.0ms
526
+  (0.1ms) rollback transaction
527
+  (0.0ms) begin transaction
528
+ --------------------------------------------------------------------
529
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
530
+ --------------------------------------------------------------------
531
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
532
+ Processing by ReportsController#custom_headers as PDF
533
+ Rendering reports/custom.pdf.prawn
534
+ Rendered reports/custom.pdf.prawn (Duration: 1.9ms | Allocations: 2227)
535
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms | Allocations: 2486)
536
+  (0.0ms) rollback transaction
537
+  (0.0ms) begin transaction
2720
538
  ----------------------------------------
2721
539
  NavigationTest: test_Renders_html_action
2722
540
  ----------------------------------------
2723
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:43:13 -0700
541
+ Started GET "/reports/sample" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
2724
542
  Processing by ReportsController#sample as HTML
2725
543
  Rendering reports/sample.html.erb within layouts/application
2726
- Rendered reports/sample.html.erb within layouts/application (1.0ms)
2727
- Completed 200 OK in 148ms (Views: 147.5ms | ActiveRecord: 0.0ms)
544
+ Rendered reports/sample.html.erb within layouts/application (Duration: 0.3ms | Allocations: 73)
545
+ Completed 200 OK in 29ms (Views: 28.4ms | ActiveRecord: 0.0ms | Allocations: 8249)
546
+  (0.1ms) rollback transaction
547
+  (0.1ms) begin transaction
548
+ -----------------------------------------------------------------------
549
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
550
+ -----------------------------------------------------------------------
551
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
552
+ Processing by ReportsController#custom as PDF
553
+ Rendering reports/custom.pdf.prawn
554
+ Rendered reports/custom.pdf.prawn (Duration: 2.9ms | Allocations: 2223)
555
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 2497)
2728
556
   (0.1ms) rollback transaction
2729
557
   (0.1ms) begin transaction
558
+ ---------------------------------------------------------
559
+ NavigationTest: test_Respects_the_'filename'_option_alone
560
+ ---------------------------------------------------------
561
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2021-02-01 23:59:55 -0800
562
+ Processing by ReportsController#custom_filename as PDF
563
+ Rendering reports/custom_filename.pdf.prawn
564
+ Rendered reports/custom_filename.pdf.prawn (Duration: 2.1ms | Allocations: 2289)
565
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms | Allocations: 2698)
566
+  (0.1ms) rollback transaction
567
+  (0.0ms) begin transaction
568
+ ---------------------------------------------
569
+ NavigationTest: test_Registers_:pdf_mime_type
570
+ ---------------------------------------------
571
+  (0.0ms) rollback transaction
572
+  (0.0ms) begin transaction
573
+ ------------------------------------------------------
574
+ NavigationTest: test_Registers_:prawn_template_handler
575
+ ------------------------------------------------------
576
+  (0.0ms) rollback transaction
577
+  (0.0ms) begin transaction
2730
578
  ------------------------------------------
2731
579
  NavigationTest: test_Renders_pdf_to_string
2732
580
  ------------------------------------------
2733
581
  Rendering reports/sample.pdf.prawn
2734
- Rendered reports/sample.pdf.prawn (47.1ms)
2735
-  (0.3ms) rollback transaction
582
+ Rendered reports/sample.pdf.prawn (Duration: 22.2ms | Allocations: 14122)
583
+  (0.1ms) rollback transaction
584
+  (0.0ms) begin transaction
585
+ --------------------------------------------------------------
586
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
587
+ --------------------------------------------------------------
588
+  (0.0ms) rollback transaction
589
+  (0.0ms) begin transaction
590
+ ----------------------------------------------
591
+ PrawnRailsTest: test_text_can_take_non_strings
592
+ ----------------------------------------------
593
+  (0.0ms) rollback transaction
594
+  (1.0ms) SELECT sqlite_version(*)
595
+  (0.1ms) SELECT sqlite_version(*)
2736
596
   (0.1ms) begin transaction
597
+ --------------------------------------------------------------
598
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
599
+ --------------------------------------------------------------
600
+  (0.0ms) rollback transaction
601
+  (0.0ms) begin transaction
2737
602
  ----------------------------------------------
2738
- NavigationTest: test_Renders_sample_pdf_action
603
+ PrawnRailsTest: test_text_can_take_non_strings
2739
604
  ----------------------------------------------
2740
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:43:13 -0700
2741
- Processing by ReportsController#sample as PDF
2742
- Rendering reports/sample.pdf.prawn
2743
- Rendered reports/sample.pdf.prawn (18.1ms)
2744
- Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.0ms)
2745
-  (0.4ms) rollback transaction
605
+  (0.1ms) rollback transaction
2746
606
   (0.1ms) begin transaction
2747
607
  ---------------------------------------------
2748
- NavigationTest: test_Renders_table_pdf_action
2749
- ---------------------------------------------
2750
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:43:13 -0700
2751
- Processing by ReportsController#table as PDF
2752
- Rendering reports/table.pdf.prawn
2753
- Rendered reports/table.pdf.prawn (16.2ms)
2754
- Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms)
2755
-  (0.2ms) rollback transaction
2756
-  (0.2ms) begin transaction
2757
- ---------------------------------------------
2758
608
  NavigationTest: test_Registers_:pdf_mime_type
2759
609
  ---------------------------------------------
2760
-  (0.2ms) rollback transaction
2761
-  (0.2ms) begin transaction
610
+  (0.1ms) rollback transaction
611
+  (0.0ms) begin transaction
2762
612
  ------------------------------------------------------
2763
613
  NavigationTest: test_Registers_:prawn_template_handler
2764
614
  ------------------------------------------------------
615
+  (0.0ms) rollback transaction
616
+  (0.0ms) begin transaction
617
+ ------------------------------------------------------------------------------------
618
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
619
+ ------------------------------------------------------------------------------------
620
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
621
+ Processing by ReportsController#table as PDF
622
+ Rendering reports/table.pdf.prawn
623
+ Rendered reports/table.pdf.prawn (Duration: 12.9ms | Allocations: 11382)
624
+ Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.0ms | Allocations: 13738)
2765
625
   (0.1ms) rollback transaction
2766
-  (0.1ms) begin transaction
2767
- ---------------------------------------------
2768
- NavigationTest: test_Registers_:pdf_mime_type
2769
- ---------------------------------------------
626
+  (0.0ms) begin transaction
627
+ ------------------------------------------------------------
628
+ NavigationTest: test_Respects_the_'disposition'_option_alone
629
+ ------------------------------------------------------------
630
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
631
+ Processing by ReportsController#custom_disposition as PDF
632
+ Rendering reports/custom_disposition.pdf.prawn
633
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 2.4ms | Allocations: 2248)
634
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms | Allocations: 2656)
2770
635
   (0.1ms) rollback transaction
2771
-  (0.1ms) begin transaction
636
+  (0.0ms) begin transaction
637
+ ---------------------------------------------------------
638
+ NavigationTest: test_Respects_the_'filename'_option_alone
639
+ ---------------------------------------------------------
640
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
641
+ Processing by ReportsController#custom_filename as PDF
642
+ Rendering reports/custom_filename.pdf.prawn
643
+ Rendered reports/custom_filename.pdf.prawn (Duration: 2.2ms | Allocations: 2289)
644
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms | Allocations: 2699)
645
+  (0.1ms) rollback transaction
646
+  (0.0ms) begin transaction
647
+ -----------------------------------------------
648
+ NavigationTest: test_render_to_string_in_mailer
649
+ -----------------------------------------------
650
+ Rendering reports/sample.pdf.prawn
651
+ Rendered reports/sample.pdf.prawn (Duration: 30.3ms | Allocations: 18074)
652
+ Rendering reports_mailer/send_report.html.erb
653
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.3ms | Allocations: 83)
654
+ ReportsMailer#send_report: processed outbound mail in 39.1ms
655
+  (0.1ms) rollback transaction
656
+  (0.0ms) begin transaction
657
+ --------------------------------------------------------------------
658
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
659
+ --------------------------------------------------------------------
660
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
661
+ Processing by ReportsController#custom_headers as PDF
662
+ Rendering reports/custom.pdf.prawn
663
+ Rendered reports/custom.pdf.prawn (Duration: 2.2ms | Allocations: 2294)
664
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms | Allocations: 2693)
665
+  (0.1ms) rollback transaction
666
+  (0.0ms) begin transaction
2772
667
  ----------------------------------------
2773
668
  NavigationTest: test_Renders_html_action
2774
669
  ----------------------------------------
2775
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:43:38 -0700
670
+ Started GET "/reports/sample" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
2776
671
  Processing by ReportsController#sample as HTML
2777
672
  Rendering reports/sample.html.erb within layouts/application
2778
- Rendered reports/sample.html.erb within layouts/application (0.8ms)
2779
- Completed 200 OK in 144ms (Views: 142.7ms | ActiveRecord: 0.0ms)
673
+ Rendered reports/sample.html.erb within layouts/application (Duration: 0.2ms | Allocations: 73)
674
+ Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms | Allocations: 4022)
675
+  (0.1ms) rollback transaction
676
+  (0.0ms) begin transaction
677
+ -----------------------------------------------------------------------
678
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
679
+ -----------------------------------------------------------------------
680
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
681
+ Processing by ReportsController#custom as PDF
682
+ Rendering reports/custom.pdf.prawn
683
+ Rendered reports/custom.pdf.prawn (Duration: 2.7ms | Allocations: 2227)
684
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms | Allocations: 2501)
685
+  (0.1ms) rollback transaction
686
+  (0.1ms) begin transaction
687
+ -----------------------------------------------------------------
688
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
689
+ -----------------------------------------------------------------
690
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
691
+ Processing by ReportsController#ivar_filename as PDF
692
+ Rendering reports/custom.pdf.prawn
693
+ Rendered reports/custom.pdf.prawn (Duration: 2.6ms | Allocations: 2223)
694
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms | Allocations: 2479)
695
+  (0.1ms) rollback transaction
696
+  (0.0ms) begin transaction
697
+ ----------------------------------------------
698
+ NavigationTest: test_Renders_sample_pdf_action
699
+ ----------------------------------------------
700
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2021-02-02 00:00:49 -0800
701
+ Processing by ReportsController#sample as PDF
702
+ Rendering reports/sample.pdf.prawn
703
+ Rendered reports/sample.pdf.prawn (Duration: 23.3ms | Allocations: 14107)
704
+ Completed 200 OK in 24ms (Views: 23.8ms | ActiveRecord: 0.0ms | Allocations: 14525)
2780
705
   (0.1ms) rollback transaction
706
+  (0.0ms) begin transaction
707
+ ------------------------------------------
708
+ NavigationTest: test_Renders_pdf_to_string
709
+ ------------------------------------------
710
+ Rendering reports/sample.pdf.prawn
711
+ Rendered reports/sample.pdf.prawn (Duration: 18.2ms | Allocations: 14114)
712
+  (0.1ms) rollback transaction
713
+  (1.4ms) SELECT sqlite_version(*)
714
+  (0.1ms) SELECT sqlite_version(*)
2781
715
   (0.1ms) begin transaction
2782
716
  ------------------------------------------
2783
717
  NavigationTest: test_Renders_pdf_to_string
2784
718
  ------------------------------------------
2785
719
  Rendering reports/sample.pdf.prawn
2786
- Rendered reports/sample.pdf.prawn (47.5ms)
2787
-  (0.3ms) rollback transaction
720
+ Rendered reports/sample.pdf.prawn (Duration: 81.4ms | Allocations: 49036)
721
+  (0.1ms) rollback transaction
2788
722
   (0.1ms) begin transaction
2789
- ---------------------------------------------
2790
- NavigationTest: test_Renders_table_pdf_action
2791
- ---------------------------------------------
2792
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:43:39 -0700
2793
- Processing by ReportsController#table as PDF
2794
- Rendering reports/table.pdf.prawn
2795
- Rendered reports/table.pdf.prawn (15.2ms)
2796
- Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.0ms)
2797
-  (0.4ms) rollback transaction
723
+ -----------------------------------------------------------------
724
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
725
+ -----------------------------------------------------------------
726
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2021-05-20 08:47:42 -0700
727
+ Processing by ReportsController#ivar_filename as PDF
728
+ Rendering reports/custom.pdf.prawn
729
+ Rendered reports/custom.pdf.prawn (Duration: 2.8ms | Allocations: 1871)
730
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms | Allocations: 2769)
731
+  (0.1ms) rollback transaction
732
+  (0.1ms) begin transaction
733
+ -----------------------------------------------
734
+ NavigationTest: test_render_to_string_in_mailer
735
+ -----------------------------------------------
736
+ Rendering reports/sample.pdf.prawn
737
+ Rendered reports/sample.pdf.prawn (Duration: 33.8ms | Allocations: 12735)
738
+ Rendering reports_mailer/send_report.html.erb
739
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.4ms | Allocations: 83)
740
+ ReportsMailer#send_report: processed outbound mail in 50.0ms
741
+  (0.1ms) rollback transaction
742
+  (0.1ms) begin transaction
743
+ --------------------------------------------------------------------
744
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
745
+ --------------------------------------------------------------------
746
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2021-05-20 08:47:42 -0700
747
+ Processing by ReportsController#custom_headers as PDF
748
+ Rendering reports/custom.pdf.prawn
749
+ Rendered reports/custom.pdf.prawn (Duration: 2.3ms | Allocations: 1796)
750
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms | Allocations: 2056)
751
+  (0.1ms) rollback transaction
752
+  (0.1ms) begin transaction
753
+ ------------------------------------------------------------
754
+ NavigationTest: test_Respects_the_'disposition'_option_alone
755
+ ------------------------------------------------------------
756
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2021-05-20 08:47:43 -0700
757
+ Processing by ReportsController#custom_disposition as PDF
758
+ Rendering reports/custom_disposition.pdf.prawn
759
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 2.6ms | Allocations: 1830)
760
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms | Allocations: 2250)
761
+  (0.1ms) rollback transaction
762
+  (0.1ms) begin transaction
763
+ ----------------------------------------
764
+ NavigationTest: test_Renders_html_action
765
+ ----------------------------------------
766
+ Started GET "/reports/sample" for 127.0.0.1 at 2021-05-20 08:47:43 -0700
767
+ Processing by ReportsController#sample as HTML
768
+ Rendering reports/sample.html.erb within layouts/application
769
+ Rendered reports/sample.html.erb within layouts/application (Duration: 0.4ms | Allocations: 73)
770
+ Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms | Allocations: 4022)
771
+  (0.1ms) rollback transaction
2798
772
   (0.1ms) begin transaction
2799
773
  ------------------------------------------------------
2800
774
  NavigationTest: test_Registers_:prawn_template_handler
@@ -2804,33 +778,41 @@ NavigationTest: test_Registers_:prawn_template_handler
2804
778
  ----------------------------------------------
2805
779
  NavigationTest: test_Renders_sample_pdf_action
2806
780
  ----------------------------------------------
2807
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:43:39 -0700
781
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2021-05-20 08:47:43 -0700
2808
782
  Processing by ReportsController#sample as PDF
2809
783
  Rendering reports/sample.pdf.prawn
2810
- Rendered reports/sample.pdf.prawn (17.9ms)
2811
- Completed 200 OK in 19ms (Views: 18.7ms | ActiveRecord: 0.0ms)
2812
-  (0.3ms) rollback transaction
784
+ Rendered reports/sample.pdf.prawn (Duration: 27.7ms | Allocations: 12741)
785
+ Completed 200 OK in 29ms (Views: 28.4ms | ActiveRecord: 0.0ms | Allocations: 13160)
786
+  (0.1ms) rollback transaction
2813
787
   (0.1ms) begin transaction
2814
- ---------------------------
2815
- PrawnRailsTest: test_config
2816
- ---------------------------
788
+ ------------------------------------------------------------------------------------
789
+ NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
790
+ ------------------------------------------------------------------------------------
791
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2021-05-20 08:47:43 -0700
792
+ Processing by ReportsController#table as PDF
793
+ Rendering reports/table.pdf.prawn
794
+ Rendered reports/table.pdf.prawn (Duration: 16.8ms | Allocations: 9596)
795
+ Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms | Allocations: 10013)
2817
796
   (0.1ms) rollback transaction
2818
797
   (0.1ms) begin transaction
2819
- ---------------------------
2820
- PrawnRailsTest: test_config
2821
- ---------------------------
2822
-  (0.0ms) rollback transaction
798
+ -----------------------------------------------------------------------
799
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
800
+ -----------------------------------------------------------------------
801
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2021-05-20 08:47:43 -0700
802
+ Processing by ReportsController#custom as PDF
803
+ Rendering reports/custom.pdf.prawn
804
+ Rendered reports/custom.pdf.prawn (Duration: 6.6ms | Allocations: 1798)
805
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms | Allocations: 2072)
806
+  (0.1ms) rollback transaction
2823
807
   (0.1ms) begin transaction
2824
- ------------------------------------------------------
2825
- NavigationTest: test_Registers_:prawn_template_handler
2826
- ------------------------------------------------------
2827
-  (0.2ms) rollback transaction
2828
-  (0.0ms) begin transaction
2829
- ------------------------------------------
2830
- NavigationTest: test_Renders_pdf_to_string
2831
- ------------------------------------------
2832
- Rendering reports/sample.pdf.prawn
2833
- Rendered reports/sample.pdf.prawn (49.8ms)
808
+ ---------------------------------------------------------
809
+ NavigationTest: test_Respects_the_'filename'_option_alone
810
+ ---------------------------------------------------------
811
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2021-05-20 08:47:43 -0700
812
+ Processing by ReportsController#custom_filename as PDF
813
+ Rendering reports/custom_filename.pdf.prawn
814
+ Rendered reports/custom_filename.pdf.prawn (Duration: 6.2ms | Allocations: 1864)
815
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms | Allocations: 2273)
2834
816
   (0.1ms) rollback transaction
2835
817
   (0.1ms) begin transaction
2836
818
  ---------------------------------------------
@@ -2838,44 +820,46 @@ NavigationTest: test_Registers_:pdf_mime_type
2838
820
  ---------------------------------------------
2839
821
   (0.1ms) rollback transaction
2840
822
   (0.1ms) begin transaction
823
+ --------------------------------------------------------------
824
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
825
+ --------------------------------------------------------------
826
+  (0.1ms) rollback transaction
827
+  (0.1ms) begin transaction
2841
828
  ----------------------------------------------
2842
- NavigationTest: test_Renders_sample_pdf_action
829
+ PrawnRailsTest: test_text_can_take_non_strings
2843
830
  ----------------------------------------------
2844
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:44:10 -0700
2845
- Processing by ReportsController#sample as PDF
2846
- Rendering reports/sample.pdf.prawn
2847
- Rendered reports/sample.pdf.prawn (16.2ms)
2848
- Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.0ms)
2849
-  (0.2ms) rollback transaction
831
+  (0.1ms) rollback transaction
832
+  (1.5ms) SELECT sqlite_version(*)
833
+  (0.1ms) SELECT sqlite_version(*)
2850
834
   (0.1ms) begin transaction
2851
- ----------------------------------------
2852
- NavigationTest: test_Renders_html_action
2853
- ----------------------------------------
2854
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:44:10 -0700
2855
- Processing by ReportsController#sample as HTML
2856
- Rendering reports/sample.html.erb within layouts/application
2857
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2858
- Completed 200 OK in 215ms (Views: 214.6ms | ActiveRecord: 0.0ms)
835
+ --------------------------------------------------------------
836
+ PrawnRailsTest: test_matches_.PDF_extension_regardless_of_case
837
+ --------------------------------------------------------------
2859
838
   (0.1ms) rollback transaction
2860
839
   (0.1ms) begin transaction
2861
- ---------------------------------------------
2862
- NavigationTest: test_Renders_table_pdf_action
2863
- ---------------------------------------------
2864
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:44:10 -0700
2865
- Processing by ReportsController#table as PDF
2866
- Rendering reports/table.pdf.prawn
2867
- Rendered reports/table.pdf.prawn (12.8ms)
2868
- Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)
840
+ ----------------------------------------------
841
+ PrawnRailsTest: test_text_can_take_non_strings
842
+ ----------------------------------------------
2869
843
   (0.1ms) rollback transaction
2870
844
   (0.1ms) begin transaction
2871
845
  ------------------------------------------------------------------------------------
2872
846
  NavigationTest: test_Renders_table_pdf_action_using_auto-required_plugin_Prawn-Table
2873
847
  ------------------------------------------------------------------------------------
2874
- Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2018-06-13 11:45:16 -0700
848
+ Started GET "/reports/table?format=pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
2875
849
  Processing by ReportsController#table as PDF
2876
850
  Rendering reports/table.pdf.prawn
2877
- Rendered reports/table.pdf.prawn (41.4ms)
2878
- Completed 200 OK in 46ms (Views: 45.0ms | ActiveRecord: 0.0ms)
851
+ Rendered reports/table.pdf.prawn (Duration: 17.7ms | Allocations: 9771)
852
+ Completed 200 OK in 27ms (Views: 23.3ms | ActiveRecord: 0.0ms | Allocations: 12127)
853
+  (0.1ms) rollback transaction
854
+  (0.1ms) begin transaction
855
+ ----------------------------------------------
856
+ NavigationTest: test_Renders_sample_pdf_action
857
+ ----------------------------------------------
858
+ Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
859
+ Processing by ReportsController#sample as PDF
860
+ Rendering reports/sample.pdf.prawn
861
+ Rendered reports/sample.pdf.prawn (Duration: 34.4ms | Allocations: 15850)
862
+ Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.0ms | Allocations: 16269)
2879
863
   (0.1ms) rollback transaction
2880
864
   (0.1ms) begin transaction
2881
865
  ---------------------------------------------
@@ -2883,39 +867,84 @@ NavigationTest: test_Registers_:pdf_mime_type
2883
867
  ---------------------------------------------
2884
868
   (0.1ms) rollback transaction
2885
869
   (0.1ms) begin transaction
870
+ ------------------------------------------------------
871
+ NavigationTest: test_Registers_:prawn_template_handler
872
+ ------------------------------------------------------
873
+  (0.1ms) rollback transaction
874
+  (0.1ms) begin transaction
2886
875
  ------------------------------------------
2887
876
  NavigationTest: test_Renders_pdf_to_string
2888
877
  ------------------------------------------
2889
878
  Rendering reports/sample.pdf.prawn
2890
- Rendered reports/sample.pdf.prawn (25.3ms)
2891
-  (0.2ms) rollback transaction
879
+ Rendered reports/sample.pdf.prawn (Duration: 22.1ms | Allocations: 12747)
880
+  (0.1ms) rollback transaction
2892
881
   (0.1ms) begin transaction
2893
- ------------------------------------------------------
2894
- NavigationTest: test_Registers_:prawn_template_handler
2895
- ------------------------------------------------------
882
+ ------------------------------------------------------------
883
+ NavigationTest: test_Respects_the_'disposition'_option_alone
884
+ ------------------------------------------------------------
885
+ Started GET "/reports/custom_disposition.pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
886
+ Processing by ReportsController#custom_disposition as PDF
887
+ Rendering reports/custom_disposition.pdf.prawn
888
+ Rendered reports/custom_disposition.pdf.prawn (Duration: 2.6ms | Allocations: 1834)
889
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms | Allocations: 2243)
2896
890
   (0.1ms) rollback transaction
2897
891
   (0.1ms) begin transaction
2898
892
  ----------------------------------------
2899
893
  NavigationTest: test_Renders_html_action
2900
894
  ----------------------------------------
2901
- Started GET "/reports/sample" for 127.0.0.1 at 2018-06-13 11:45:16 -0700
895
+ Started GET "/reports/sample" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
2902
896
  Processing by ReportsController#sample as HTML
2903
897
  Rendering reports/sample.html.erb within layouts/application
2904
- Rendered reports/sample.html.erb within layouts/application (0.9ms)
2905
- Completed 200 OK in 220ms (Views: 218.8ms | ActiveRecord: 0.0ms)
898
+ Rendered reports/sample.html.erb within layouts/application (Duration: 0.4ms | Allocations: 81)
899
+ Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.0ms | Allocations: 4031)
2906
900
   (0.1ms) rollback transaction
2907
901
   (0.1ms) begin transaction
2908
- ----------------------------------------------
2909
- NavigationTest: test_Renders_sample_pdf_action
2910
- ----------------------------------------------
2911
- Started GET "/reports/sample?format=pdf" for 127.0.0.1 at 2018-06-13 11:45:16 -0700
2912
- Processing by ReportsController#sample as PDF
902
+ ---------------------------------------------------------
903
+ NavigationTest: test_Respects_the_'filename'_option_alone
904
+ ---------------------------------------------------------
905
+ Started GET "/reports/custom_filename.pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
906
+ Processing by ReportsController#custom_filename as PDF
907
+ Rendering reports/custom_filename.pdf.prawn
908
+ Rendered reports/custom_filename.pdf.prawn (Duration: 7.4ms | Allocations: 1864)
909
+ Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms | Allocations: 2274)
910
+  (0.1ms) rollback transaction
911
+  (0.1ms) begin transaction
912
+ -----------------------------------------------------------------
913
+ NavigationTest: test_Sets_file_name_from_'@filename'_when_present
914
+ -----------------------------------------------------------------
915
+ Started GET "/reports/ivar_filename.pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
916
+ Processing by ReportsController#ivar_filename as PDF
917
+ Rendering reports/custom.pdf.prawn
918
+ Rendered reports/custom.pdf.prawn (Duration: 2.4ms | Allocations: 1871)
919
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 2267)
920
+  (0.1ms) rollback transaction
921
+  (0.1ms) begin transaction
922
+ -----------------------------------------------
923
+ NavigationTest: test_render_to_string_in_mailer
924
+ -----------------------------------------------
2913
925
  Rendering reports/sample.pdf.prawn
2914
- Rendered reports/sample.pdf.prawn (15.7ms)
2915
- Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
926
+ Rendered reports/sample.pdf.prawn (Duration: 22.7ms | Allocations: 12741)
927
+ Rendering reports_mailer/send_report.html.erb
928
+ Rendered reports_mailer/send_report.html.erb (Duration: 0.4ms | Allocations: 77)
929
+ ReportsMailer#send_report: processed outbound mail in 37.8ms
930
+  (0.1ms) rollback transaction
931
+  (0.1ms) begin transaction
932
+ --------------------------------------------------------------------
933
+ NavigationTest: test_Maintains_existing_'Content-Disposition'_header
934
+ --------------------------------------------------------------------
935
+ Started GET "/reports/custom_headers.pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
936
+ Processing by ReportsController#custom_headers as PDF
937
+ Rendering reports/custom.pdf.prawn
938
+ Rendered reports/custom.pdf.prawn (Duration: 2.3ms | Allocations: 1796)
939
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms | Allocations: 2055)
2916
940
   (0.1ms) rollback transaction
2917
941
   (0.1ms) begin transaction
2918
- ---------------------------
2919
- PrawnRailsTest: test_config
2920
- ---------------------------
942
+ -----------------------------------------------------------------------
943
+ NavigationTest: test_Respects_both_options_on_'prawn-document'_together
944
+ -----------------------------------------------------------------------
945
+ Started GET "/reports/custom.pdf" for 127.0.0.1 at 2021-05-20 09:12:56 -0700
946
+ Processing by ReportsController#custom as PDF
947
+ Rendering reports/custom.pdf.prawn
948
+ Rendered reports/custom.pdf.prawn (Duration: 2.3ms | Allocations: 1798)
949
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms | Allocations: 2071)
2921
950
   (0.1ms) rollback transaction