cypress-on-rails 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +14 -14
  3. data/README.md +178 -22
  4. data/docs/authentication.md +30 -0
  5. data/docs/factory_bot_associations.md +14 -0
  6. data/lib/cypress_on_rails/configuration.rb +5 -0
  7. data/lib/cypress_on_rails/railtie.rb +10 -2
  8. data/lib/cypress_on_rails/vcr/insert_eject_middleware.rb +75 -0
  9. data/lib/cypress_on_rails/vcr/middleware_helpers.rb +51 -0
  10. data/lib/cypress_on_rails/vcr/use_cassette_middleware.rb +56 -0
  11. data/lib/cypress_on_rails/version.rb +1 -1
  12. data/lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb +8 -0
  13. data/lib/generators/cypress_on_rails/templates/spec/cypress/support/commands.js +22 -0
  14. data/lib/generators/cypress_on_rails/templates/spec/cypress/support/on-rails.js +1 -0
  15. data/lib/generators/cypress_on_rails/templates/spec/e2e/e2e_helper.rb.erb +0 -5
  16. data/spec/cypress_on_rails/configuration_spec.rb +4 -1
  17. data/spec/cypress_on_rails/vcr/insert_eject_middleware_spec.rb +177 -0
  18. data/spec/cypress_on_rails/vcr/use_cassette_middleware_spec.rb +68 -0
  19. data/specs_e2e/rails_6_1/.gitattributes +10 -0
  20. data/specs_e2e/rails_6_1/Gemfile +20 -0
  21. data/specs_e2e/{rails_5_2 → rails_6_1}/Rakefile +1 -1
  22. data/specs_e2e/rails_6_1/app/assets/stylesheets/application.css +15 -0
  23. data/specs_e2e/rails_6_1/app/jobs/application_job.rb +7 -0
  24. data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/layouts/application.html.erb +1 -1
  25. data/specs_e2e/rails_6_1/bin/bundle +114 -0
  26. data/specs_e2e/rails_6_1/bin/rails +5 -0
  27. data/specs_e2e/rails_6_1/bin/rake +5 -0
  28. data/specs_e2e/{rails_5_2 → rails_6_1}/bin/setup +15 -4
  29. data/specs_e2e/rails_6_1/bin/spring +14 -0
  30. data/specs_e2e/rails_6_1/bin/yarn +17 -0
  31. data/specs_e2e/rails_6_1/config/application.rb +34 -0
  32. data/specs_e2e/rails_6_1/config/boot.rb +4 -0
  33. data/specs_e2e/rails_6_1/config/cable.yml +10 -0
  34. data/specs_e2e/rails_6_1/config/credentials.yml.enc +1 -0
  35. data/specs_e2e/{rails_5_2 → rails_6_1}/config/database.yml +7 -0
  36. data/specs_e2e/{rails_5_2 → rails_6_1}/config/environment.rb +1 -1
  37. data/specs_e2e/{rails_5_2 → rails_6_1}/config/environments/development.rb +22 -5
  38. data/specs_e2e/rails_6_1/config/environments/production.rb +120 -0
  39. data/specs_e2e/{rails_5_2 → rails_6_1}/config/environments/test.rb +24 -7
  40. data/specs_e2e/rails_6_1/config/initializers/backtrace_silencers.rb +8 -0
  41. data/specs_e2e/{rails_5_2 → rails_6_1}/config/initializers/content_security_policy.rb +5 -0
  42. data/specs_e2e/{rails_4_2 → rails_6_1}/config/initializers/filter_parameter_logging.rb +3 -1
  43. data/specs_e2e/rails_6_1/config/initializers/permissions_policy.rb +11 -0
  44. data/specs_e2e/{rails_3_2 → rails_6_1}/config/initializers/wrap_parameters.rb +5 -1
  45. data/specs_e2e/{rails_5_2 → rails_6_1}/config/locales/en.yml +1 -1
  46. data/specs_e2e/rails_6_1/config/master.key +1 -0
  47. data/specs_e2e/rails_6_1/config/puma.rb +43 -0
  48. data/specs_e2e/rails_6_1/config/storage.yml +34 -0
  49. data/specs_e2e/{rails_5_2 → rails_6_1}/config.ru +2 -1
  50. data/specs_e2e/{rails_5_2 → rails_6_1}/db/migrate/20180621085832_create_posts.rb +1 -1
  51. data/specs_e2e/rails_6_1/package.json +8 -0
  52. data/specs_e2e/rails_6_1/playwright-report/index.html +71 -0
  53. data/specs_e2e/rails_6_1/public/robots.txt +1 -0
  54. data/specs_e2e/rails_6_1/test-results/.last-run.json +4 -0
  55. data/specs_e2e/{rails_4_2 → rails_6_1}/test.sh +22 -15
  56. data/specs_e2e/rails_7_2/.gitattributes +9 -0
  57. data/specs_e2e/rails_7_2/.gitignore +16 -0
  58. data/specs_e2e/rails_7_2/.rubocop.yml +8 -0
  59. data/specs_e2e/rails_7_2/Gemfile +11 -0
  60. data/specs_e2e/{rails_4_2 → rails_7_2}/Rakefile +1 -1
  61. data/specs_e2e/rails_7_2/app/assets/stylesheets/application.css +15 -0
  62. data/specs_e2e/rails_7_2/app/controllers/application_controller.rb +4 -0
  63. data/specs_e2e/rails_7_2/app/controllers/posts_controller.rb +58 -0
  64. data/specs_e2e/rails_7_2/app/helpers/posts_helper.rb +2 -0
  65. data/specs_e2e/rails_7_2/app/jobs/application_job.rb +7 -0
  66. data/specs_e2e/rails_7_2/app/models/application_record.rb +3 -0
  67. data/specs_e2e/rails_7_2/app/models/post.rb +2 -0
  68. data/specs_e2e/rails_7_2/app/views/layouts/application.html.erb +22 -0
  69. data/specs_e2e/rails_7_2/app/views/posts/_form.html.erb +32 -0
  70. data/specs_e2e/rails_7_2/app/views/posts/edit.html.erb +6 -0
  71. data/specs_e2e/rails_7_2/app/views/posts/index.html.erb +31 -0
  72. data/specs_e2e/rails_7_2/app/views/posts/new.html.erb +5 -0
  73. data/specs_e2e/rails_7_2/app/views/posts/show.html.erb +19 -0
  74. data/specs_e2e/rails_7_2/bin/brakeman +7 -0
  75. data/specs_e2e/rails_7_2/bin/bundle +109 -0
  76. data/specs_e2e/rails_7_2/bin/importmap +4 -0
  77. data/specs_e2e/rails_7_2/bin/rails +4 -0
  78. data/specs_e2e/rails_7_2/bin/rake +4 -0
  79. data/specs_e2e/rails_7_2/bin/setup +37 -0
  80. data/specs_e2e/rails_7_2/config/application.rb +37 -0
  81. data/specs_e2e/rails_7_2/config/boot.rb +4 -0
  82. data/specs_e2e/rails_7_2/config/cable.yml +10 -0
  83. data/specs_e2e/rails_7_2/config/credentials.yml.enc +1 -0
  84. data/specs_e2e/rails_7_2/config/database.yml +32 -0
  85. data/specs_e2e/{rails_4_2 → rails_7_2}/config/environment.rb +1 -1
  86. data/specs_e2e/rails_7_2/config/environments/development.rb +54 -0
  87. data/specs_e2e/rails_7_2/config/environments/production.rb +105 -0
  88. data/specs_e2e/rails_7_2/config/environments/test.rb +45 -0
  89. data/specs_e2e/rails_7_2/config/importmap.rb +7 -0
  90. data/specs_e2e/rails_7_2/config/initializers/content_security_policy.rb +25 -0
  91. data/specs_e2e/rails_7_2/config/initializers/filter_parameter_logging.rb +8 -0
  92. data/specs_e2e/{rails_5_2 → rails_7_2}/config/initializers/inflections.rb +4 -4
  93. data/specs_e2e/rails_7_2/config/initializers/permissions_policy.rb +13 -0
  94. data/specs_e2e/rails_7_2/config/locales/en.yml +31 -0
  95. data/specs_e2e/rails_7_2/config/master.key +1 -0
  96. data/specs_e2e/rails_7_2/config/puma.rb +34 -0
  97. data/specs_e2e/rails_7_2/config/routes.rb +5 -0
  98. data/specs_e2e/rails_7_2/config/storage.yml +34 -0
  99. data/specs_e2e/{rails_4_2 → rails_7_2}/config.ru +3 -1
  100. data/specs_e2e/rails_7_2/db/migrate/20180621085832_create_posts.rb +11 -0
  101. data/specs_e2e/rails_7_2/db/seeds.rb +9 -0
  102. data/specs_e2e/rails_7_2/db/test.sqlite3-shm +0 -0
  103. data/specs_e2e/rails_7_2/db/test.sqlite3-wal +0 -0
  104. data/specs_e2e/rails_7_2/package.json +8 -0
  105. data/specs_e2e/rails_7_2/playwright-report/index.html +71 -0
  106. data/specs_e2e/{rails_4_2 → rails_7_2}/public/404.html +6 -6
  107. data/specs_e2e/rails_7_2/public/406-unsupported-browser.html +66 -0
  108. data/specs_e2e/{rails_4_2 → rails_7_2}/public/422.html +6 -6
  109. data/specs_e2e/{rails_4_2 → rails_7_2}/public/500.html +6 -6
  110. data/specs_e2e/rails_7_2/public/icon.png +0 -0
  111. data/specs_e2e/rails_7_2/public/icon.svg +3 -0
  112. data/specs_e2e/rails_7_2/public/robots.txt +1 -0
  113. data/specs_e2e/rails_7_2/storage/test.sqlite3 +0 -0
  114. data/specs_e2e/rails_7_2/test/controllers/posts_controller_test.rb +48 -0
  115. data/specs_e2e/rails_7_2/test/cypress_fixtures/posts.yml +11 -0
  116. data/specs_e2e/rails_7_2/test/fixtures/posts.yml +11 -0
  117. data/specs_e2e/rails_7_2/test/models/post_test.rb +7 -0
  118. data/specs_e2e/rails_7_2/test-results/.last-run.json +4 -0
  119. data/specs_e2e/rails_7_2/test.sh +57 -0
  120. data/specs_e2e/rails_8/.gitattributes +9 -0
  121. data/specs_e2e/rails_8/.gitignore +16 -0
  122. data/specs_e2e/rails_8/.rubocop.yml +8 -0
  123. data/specs_e2e/rails_8/Gemfile +20 -0
  124. data/specs_e2e/{rails_3_2 → rails_8}/Rakefile +2 -3
  125. data/specs_e2e/rails_8/app/assets/stylesheets/application.css +10 -0
  126. data/specs_e2e/rails_8/app/controllers/application_controller.rb +4 -0
  127. data/specs_e2e/rails_8/app/controllers/posts_controller.rb +58 -0
  128. data/specs_e2e/rails_8/app/helpers/posts_helper.rb +2 -0
  129. data/specs_e2e/rails_8/app/jobs/application_job.rb +7 -0
  130. data/specs_e2e/rails_8/app/models/application_record.rb +3 -0
  131. data/specs_e2e/rails_8/app/models/post.rb +2 -0
  132. data/specs_e2e/rails_8/app/views/layouts/application.html.erb +27 -0
  133. data/specs_e2e/rails_8/app/views/posts/_form.html.erb +32 -0
  134. data/specs_e2e/rails_8/app/views/posts/edit.html.erb +6 -0
  135. data/specs_e2e/rails_8/app/views/posts/index.html.erb +31 -0
  136. data/specs_e2e/rails_8/app/views/posts/new.html.erb +5 -0
  137. data/specs_e2e/rails_8/app/views/posts/show.html.erb +19 -0
  138. data/specs_e2e/rails_8/bin/brakeman +7 -0
  139. data/specs_e2e/rails_8/bin/bundle +109 -0
  140. data/specs_e2e/rails_8/bin/dev +2 -0
  141. data/specs_e2e/rails_8/bin/importmap +4 -0
  142. data/specs_e2e/rails_8/bin/rails +4 -0
  143. data/specs_e2e/rails_8/bin/rake +4 -0
  144. data/specs_e2e/rails_8/bin/setup +34 -0
  145. data/specs_e2e/rails_8/bin/thrust +5 -0
  146. data/specs_e2e/rails_8/config/application.rb +27 -0
  147. data/specs_e2e/rails_8/config/boot.rb +4 -0
  148. data/specs_e2e/rails_8/config/cable.yml +17 -0
  149. data/specs_e2e/rails_8/config/cache.yml +16 -0
  150. data/specs_e2e/rails_8/config/credentials.yml.enc +1 -0
  151. data/specs_e2e/rails_8/config/database.yml +41 -0
  152. data/specs_e2e/rails_8/config/deploy.yml +116 -0
  153. data/specs_e2e/rails_8/config/environment.rb +5 -0
  154. data/specs_e2e/rails_8/config/environments/development.rb +57 -0
  155. data/specs_e2e/rails_8/config/environments/production.rb +90 -0
  156. data/specs_e2e/rails_8/config/environments/test.rb +45 -0
  157. data/specs_e2e/rails_8/config/importmap.rb +7 -0
  158. data/specs_e2e/rails_8/config/initializers/content_security_policy.rb +25 -0
  159. data/specs_e2e/rails_8/config/initializers/filter_parameter_logging.rb +8 -0
  160. data/specs_e2e/rails_8/config/initializers/inflections.rb +16 -0
  161. data/specs_e2e/rails_8/config/locales/en.yml +31 -0
  162. data/specs_e2e/rails_8/config/master.key +1 -0
  163. data/specs_e2e/rails_8/config/puma.rb +41 -0
  164. data/specs_e2e/rails_8/config/queue.yml +18 -0
  165. data/specs_e2e/rails_8/config/recurring.yml +10 -0
  166. data/specs_e2e/rails_8/config/routes.rb +5 -0
  167. data/specs_e2e/rails_8/config/storage.yml +34 -0
  168. data/specs_e2e/rails_8/config.ru +6 -0
  169. data/specs_e2e/rails_8/db/cable_schema.rb +11 -0
  170. data/specs_e2e/rails_8/db/cache_schema.rb +14 -0
  171. data/specs_e2e/rails_8/db/migrate/20180621085832_create_posts.rb +11 -0
  172. data/specs_e2e/rails_8/db/queue_schema.rb +129 -0
  173. data/specs_e2e/rails_8/db/seeds.rb +9 -0
  174. data/specs_e2e/rails_8/package.json +8 -0
  175. data/specs_e2e/rails_8/playwright-report/index.html +71 -0
  176. data/specs_e2e/rails_8/public/400.html +114 -0
  177. data/specs_e2e/rails_8/public/404.html +114 -0
  178. data/specs_e2e/rails_8/public/406-unsupported-browser.html +114 -0
  179. data/specs_e2e/rails_8/public/422.html +114 -0
  180. data/specs_e2e/rails_8/public/500.html +114 -0
  181. data/specs_e2e/rails_8/public/icon.png +0 -0
  182. data/specs_e2e/rails_8/public/icon.svg +3 -0
  183. data/specs_e2e/rails_8/public/robots.txt +1 -0
  184. data/specs_e2e/rails_8/storage/test.sqlite3 +0 -0
  185. data/specs_e2e/rails_8/storage/test.sqlite3-shm +0 -0
  186. data/specs_e2e/rails_8/storage/test.sqlite3-wal +0 -0
  187. data/specs_e2e/rails_8/test/application_system_test_case.rb +5 -0
  188. data/specs_e2e/rails_8/test/controllers/posts_controller_test.rb +48 -0
  189. data/specs_e2e/rails_8/test/cypress_fixtures/posts.yml +11 -0
  190. data/specs_e2e/rails_8/test/fixtures/posts.yml +11 -0
  191. data/specs_e2e/rails_8/test/models/post_test.rb +7 -0
  192. data/specs_e2e/rails_8/test/test_helper.rb +15 -0
  193. data/specs_e2e/rails_8/test-results/.last-run.json +4 -0
  194. data/specs_e2e/{rails_5_2 → rails_8}/test.sh +1 -1
  195. metadata +217 -150
  196. data/lib/cypress_on_rails/vcr_middleware.rb +0 -73
  197. data/spec/cypress_on_rails/vcr_middleware_spec.rb +0 -119
  198. data/specs_e2e/rails_3_2/.gitignore +0 -9
  199. data/specs_e2e/rails_3_2/.ruby_version +0 -1
  200. data/specs_e2e/rails_3_2/Gemfile +0 -7
  201. data/specs_e2e/rails_3_2/README.rdoc +0 -261
  202. data/specs_e2e/rails_3_2/app/assets/stylesheets/application.css +0 -13
  203. data/specs_e2e/rails_3_2/app/controllers/application_controller.rb +0 -3
  204. data/specs_e2e/rails_3_2/app/controllers/welcome_controller.rb +0 -4
  205. data/specs_e2e/rails_3_2/app/helpers/application_helper.rb +0 -2
  206. data/specs_e2e/rails_3_2/app/models/post.rb +0 -21
  207. data/specs_e2e/rails_3_2/app/views/layouts/application.html.erb +0 -13
  208. data/specs_e2e/rails_3_2/app/views/welcome/index.html.erb +0 -24
  209. data/specs_e2e/rails_3_2/bin/rails +0 -6
  210. data/specs_e2e/rails_3_2/config/application.rb +0 -68
  211. data/specs_e2e/rails_3_2/config/boot.rb +0 -6
  212. data/specs_e2e/rails_3_2/config/environment.rb +0 -5
  213. data/specs_e2e/rails_3_2/config/environments/development.rb +0 -31
  214. data/specs_e2e/rails_3_2/config/environments/production.rb +0 -64
  215. data/specs_e2e/rails_3_2/config/environments/test.rb +0 -35
  216. data/specs_e2e/rails_3_2/config/initializers/backtrace_silencers.rb +0 -7
  217. data/specs_e2e/rails_3_2/config/initializers/inflections.rb +0 -15
  218. data/specs_e2e/rails_3_2/config/initializers/mime_types.rb +0 -5
  219. data/specs_e2e/rails_3_2/config/initializers/secret_token.rb +0 -7
  220. data/specs_e2e/rails_3_2/config/initializers/session_store.rb +0 -8
  221. data/specs_e2e/rails_3_2/config/locales/en.yml +0 -5
  222. data/specs_e2e/rails_3_2/config/routes.rb +0 -60
  223. data/specs_e2e/rails_3_2/config.ru +0 -4
  224. data/specs_e2e/rails_3_2/public/404.html +0 -26
  225. data/specs_e2e/rails_3_2/public/422.html +0 -26
  226. data/specs_e2e/rails_3_2/public/500.html +0 -25
  227. data/specs_e2e/rails_3_2/public/robots.txt +0 -5
  228. data/specs_e2e/rails_3_2/test.sh +0 -50
  229. data/specs_e2e/rails_4_2/.gitignore +0 -12
  230. data/specs_e2e/rails_4_2/Gemfile +0 -11
  231. data/specs_e2e/rails_4_2/README.rdoc +0 -28
  232. data/specs_e2e/rails_4_2/app/assets/javascripts/using_vcr.js +0 -2
  233. data/specs_e2e/rails_4_2/app/assets/stylesheets/using_vcr.css +0 -4
  234. data/specs_e2e/rails_4_2/app/controllers/application_controller.rb +0 -5
  235. data/specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb +0 -10
  236. data/specs_e2e/rails_4_2/app/controllers/welcome_controller.rb +0 -4
  237. data/specs_e2e/rails_4_2/app/models/post.rb +0 -23
  238. data/specs_e2e/rails_4_2/app/views/layouts/application.html.erb +0 -12
  239. data/specs_e2e/rails_4_2/app/views/using_vcr/index.html.erb +0 -6
  240. data/specs_e2e/rails_4_2/app/views/using_vcr/record_cats.html.erb +0 -7
  241. data/specs_e2e/rails_4_2/app/views/welcome/index.html.erb +0 -24
  242. data/specs_e2e/rails_4_2/bin/bundle +0 -3
  243. data/specs_e2e/rails_4_2/bin/rails +0 -4
  244. data/specs_e2e/rails_4_2/bin/rake +0 -4
  245. data/specs_e2e/rails_4_2/bin/setup +0 -29
  246. data/specs_e2e/rails_4_2/config/application.rb +0 -32
  247. data/specs_e2e/rails_4_2/config/boot.rb +0 -3
  248. data/specs_e2e/rails_4_2/config/environments/development.rb +0 -25
  249. data/specs_e2e/rails_4_2/config/environments/production.rb +0 -64
  250. data/specs_e2e/rails_4_2/config/environments/test.rb +0 -42
  251. data/specs_e2e/rails_4_2/config/initializers/backtrace_silencers.rb +0 -7
  252. data/specs_e2e/rails_4_2/config/initializers/cookies_serializer.rb +0 -3
  253. data/specs_e2e/rails_4_2/config/initializers/session_store.rb +0 -3
  254. data/specs_e2e/rails_4_2/config/initializers/to_time_preserves_timezone.rb +0 -10
  255. data/specs_e2e/rails_4_2/config/initializers/wrap_parameters.rb +0 -9
  256. data/specs_e2e/rails_4_2/config/locales/en.yml +0 -23
  257. data/specs_e2e/rails_4_2/config/routes.rb +0 -61
  258. data/specs_e2e/rails_4_2/config/secrets.yml +0 -22
  259. data/specs_e2e/rails_4_2/package.json +0 -12
  260. data/specs_e2e/rails_4_2/playwright-report/index.html +0 -62
  261. data/specs_e2e/rails_4_2/public/favicon.ico +0 -0
  262. data/specs_e2e/rails_4_2/public/robots.txt +0 -5
  263. data/specs_e2e/rails_4_2/spec/fixtures/vcr_cassettes/cats.yml +0 -63
  264. data/specs_e2e/rails_5_2/Gemfile +0 -15
  265. data/specs_e2e/rails_5_2/app/assets/javascripts/posts.js +0 -2
  266. data/specs_e2e/rails_5_2/app/assets/stylesheets/posts.css +0 -4
  267. data/specs_e2e/rails_5_2/app/assets/stylesheets/scaffold.css +0 -80
  268. data/specs_e2e/rails_5_2/app/jobs/application_job.rb +0 -2
  269. data/specs_e2e/rails_5_2/app/views/welcome/index.html.erb +0 -5
  270. data/specs_e2e/rails_5_2/bin/bundle +0 -3
  271. data/specs_e2e/rails_5_2/bin/rails +0 -4
  272. data/specs_e2e/rails_5_2/bin/rake +0 -4
  273. data/specs_e2e/rails_5_2/bin/update +0 -25
  274. data/specs_e2e/rails_5_2/config/application.rb +0 -33
  275. data/specs_e2e/rails_5_2/config/boot.rb +0 -4
  276. data/specs_e2e/rails_5_2/config/credentials.yml.enc +0 -1
  277. data/specs_e2e/rails_5_2/config/environments/production.rb +0 -68
  278. data/specs_e2e/rails_5_2/config/initializers/backtrace_silencers.rb +0 -7
  279. data/specs_e2e/rails_5_2/config/initializers/filter_parameter_logging.rb +0 -4
  280. data/specs_e2e/rails_5_2/config/initializers/mime_types.rb +0 -4
  281. data/specs_e2e/rails_5_2/config/initializers/wrap_parameters.rb +0 -9
  282. data/specs_e2e/rails_5_2/config/master.key +0 -1
  283. data/specs_e2e/rails_5_2/public/favicon.ico +0 -0
  284. data/specs_e2e/rails_5_2/public/robots.txt +0 -1
  285. /data/specs_e2e/{rails_5_2 → rails_6_1}/.gitignore +0 -0
  286. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/controllers/application_controller.rb +0 -0
  287. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/controllers/posts_controller.rb +0 -0
  288. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/helpers/posts_helper.rb +0 -0
  289. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/models/application_record.rb +0 -0
  290. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/models/post.rb +0 -0
  291. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/_form.html.erb +0 -0
  292. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/edit.html.erb +0 -0
  293. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/index.html.erb +0 -0
  294. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/new.html.erb +0 -0
  295. /data/specs_e2e/{rails_5_2 → rails_6_1}/app/views/posts/show.html.erb +0 -0
  296. /data/specs_e2e/{rails_5_2 → rails_6_1}/config/initializers/application_controller_renderer.rb +0 -0
  297. /data/specs_e2e/{rails_5_2 → rails_6_1}/config/initializers/cookies_serializer.rb +0 -0
  298. /data/specs_e2e/{rails_4_2 → rails_6_1}/config/initializers/inflections.rb +0 -0
  299. /data/specs_e2e/{rails_4_2 → rails_6_1}/config/initializers/mime_types.rb +0 -0
  300. /data/specs_e2e/{rails_5_2 → rails_6_1}/config/routes.rb +0 -0
  301. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/404.html +0 -0
  302. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/422.html +0 -0
  303. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/500.html +0 -0
  304. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/apple-touch-icon-precomposed.png +0 -0
  305. /data/specs_e2e/{rails_5_2 → rails_6_1}/public/apple-touch-icon.png +0 -0
  306. /data/specs_e2e/{rails_3_2 → rails_6_1}/public/favicon.ico +0 -0
  307. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/controllers/posts_controller_test.rb +0 -0
  308. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/cypress_fixtures/posts.yml +0 -0
  309. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/fixtures/posts.yml +0 -0
  310. /data/specs_e2e/{rails_5_2 → rails_6_1}/test/models/post_test.rb +0 -0
  311. /data/specs_e2e/{rails_3_2/log → rails_6_1/vendor}/.keep +0 -0
  312. /data/specs_e2e/{rails_3_2/tmp → rails_7_2/vendor}/.keep +0 -0
  313. /data/specs_e2e/{rails_4_2/spec → rails_7_2/vendor/javascript}/.keep +0 -0
  314. /data/specs_e2e/{rails_5_2 → rails_8}/README.md +0 -0
  315. /data/specs_e2e/{rails_4_2/vendor → rails_8/storage}/.keep +0 -0
  316. /data/specs_e2e/{rails_5_2 → rails_8}/vendor/.keep +0 -0
  317. /data/specs_e2e/{rails_3_2/vendor/.gitkeep → rails_8/vendor/javascript/.keep} +0 -0
@@ -1,42 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = ENV['CI'].present?
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Randomize the order test cases are executed.
35
- config.active_support.test_order = :random
36
-
37
- # Print deprecation notices to the stderr.
38
- config.active_support.deprecation = :stderr
39
-
40
- # Raises error for missing translations
41
- # config.action_view.raise_on_missing_translations = true
42
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_rails_4_2_session'
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Preserve the timezone of the receiver when calling to `to_time`.
4
- # Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
5
- # when converting to an instance of `Time` instead of the previous behavior
6
- # of converting to the local system timezone.
7
- #
8
- # Rails 5.0 introduced this config option so that apps made with earlier
9
- # versions of Rails are not affected when upgrading.
10
- ActiveSupport.to_time_preserves_timezone = true
@@ -1,9 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,61 +0,0 @@
1
- Rails.application.routes.draw do
2
- get 'using_vcr/index'
3
-
4
- # The priority is based upon order of creation: first created -> highest priority.
5
- # See how all your routes lay out with "rake routes".
6
-
7
- # You can have the root of your site routed with "root"
8
- root 'welcome#index'
9
-
10
- get 'using_vcr/:action', to: 'using_vcr#:action'
11
-
12
-
13
- # Example of regular route:
14
- # get 'products/:id' => 'catalog#view'
15
-
16
- # Example of named route that can be invoked with purchase_url(id: product.id)
17
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
18
-
19
- # Example resource route (maps HTTP verbs to controller actions automatically):
20
- # resources :products
21
-
22
- # Example resource route with options:
23
- # resources :products do
24
- # member do
25
- # get 'short'
26
- # post 'toggle'
27
- # end
28
- #
29
- # collection do
30
- # get 'sold'
31
- # end
32
- # end
33
-
34
- # Example resource route with sub-resources:
35
- # resources :products do
36
- # resources :comments, :sales
37
- # resource :seller
38
- # end
39
-
40
- # Example resource route with more complex sub-resources:
41
- # resources :products do
42
- # resources :comments
43
- # resources :sales do
44
- # get 'recent', on: :collection
45
- # end
46
- # end
47
-
48
- # Example resource route with concerns:
49
- # concern :toggleable do
50
- # post 'toggle'
51
- # end
52
- # resources :posts, concerns: :toggleable
53
- # resources :photos, concerns: :toggleable
54
-
55
- # Example resource route within a namespace:
56
- # namespace :admin do
57
- # # Directs /admin/products/* to Admin::ProductsController
58
- # # (app/controllers/admin/products_controller.rb)
59
- # resources :products
60
- # end
61
- end
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: adfe5a1fe4a9da0cd84475395507664689b981c8059a1e3dabc7ad159a89a31d41e54811832c5a70bce77529ad3d601fd4f4051c7448349d52b2becd84d07d17
15
-
16
- test:
17
- secret_key_base: 546b4b752cc98c06016597d26714a81e705e8c18de9a1f94166a042bc170da21a4a905205c67b82de423b6648b779980ee161a61f820e172b88dc2dafc0abbeb
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,12 +0,0 @@
1
- {
2
- "name": "rails_4_2",
3
- "version": "1.0.0",
4
- "main": "index.js",
5
- "license": "MIT",
6
- "devDependencies": {
7
- "@playwright/test": "^1.40.1",
8
- "cypress": "^10.11.0",
9
- "cypress-on-rails": "file:../../plugin",
10
- "playwright": "^1.40.1"
11
- }
12
- }