okuribito_rails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/okuribito_rails/application_controller.rb +1 -8
  3. data/app/controllers/okuribito_rails/method_call_logs_controller.rb +1 -1
  4. data/app/controllers/okuribito_rails/method_call_situations_controller.rb +1 -1
  5. data/lib/generators/okuribito_rails/templates/initializer.erb +4 -0
  6. data/lib/okuribito_rails/config.rb +4 -0
  7. data/lib/okuribito_rails/engine.rb +9 -0
  8. data/lib/okuribito_rails/start_observer.rb +6 -0
  9. data/lib/okuribito_rails/version.rb +1 -1
  10. data/spec/dummy/db/test.sqlite3 +0 -0
  11. data/spec/dummy/log/test.log +10605 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-B/-BDwN_OWEjRIIH-hXrdKAsIEHMk8JIowWZjTiDmbEPc.cache +1 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-y/-y7CuypkYp7fBlDQBH42JOLSFFlmSat_r6LzhW0QhqE.cache +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0b/0bIBnFDpz8hfXFuzuQBL7quJGw_aSX7J_5o9Hr95DYM.cache +1 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/14/14AP1ZRMAYQQ4qFIZ1oeHM2XCfdGgbKnrjTFwWlaLZs.cache +0 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2X/2XitnhmoNerl6IExWiDm6fg41RKwG2JOXYJB_op2Ufg.cache +0 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2_/2_0fPm6UPqAcx4DnsHf6aQdixOhXw5H-5Y7sv68UiWQ.cache +1 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4F/4Fn-Vs3_ipcAuYOq-eozysX1gQbFs6GK0Oi3mly6vQg.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_Uo_ZQWirPgPVik_NGC0q_smxSAtEnVbFTxbrF2zhk.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7v/7vQM37x2uiIow-Nw2Yxw5OpAn-fvmfppT5PubB1ldDE.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8q/8q3Eo21qKNCNbd1Ualp5KDnEDuZFHQcgtp36RSsLzcg.cache +2 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8t/8t6HYhVnh8OVg-ZnR2c36oXgYN-MArsi6LlNaYsFNFs.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZHSbvPpFE-Rl4PSNmh2QRMIiSinM6tga63qXnt1BSQ.cache +3 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/C_/C_VR9NrXARoZJsuMRKJw69IAUbv6m--HXIqLoD9fF4w.cache +0 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cr/Cry0qHdY4lMVOKzF5Zf6zN3ZCB7W0FjZZdxZTP6-yZU.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DN/DNdppexD6HywJz_YgqmDgtrrrz39Ix_a3d9FoDSiMCc.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F8/F87e7XMJaSt5zEett484f03I8u9Hdb4LA3MXL21IU5M.cache +0 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FM/FMS6vBlMwdD11bp0-VgOGjpNYRwMtVX4-MpmJAOZnX0.cache +0 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hi/HiNrLOsYTRLZql_E6xBcPlbWMXCanjsb64ZvvNDqc20.cache +3 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hl/HlgFFgZwgYYr_HKbn23eOtZeE7UBsi6RpVPDUhOKOvU.cache +1 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/I0/I0MWLTF-zC2N5NTOO5_J5v9YrK93p7i-bda_9VkKdlA.cache +1 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ii/IiVveumYzLJ19J3dswPG2OfhSRmg9NiBXeAWE56g3QY.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kx/Kx13hlwMWbemPHw6zGIZfcMIMXaDv9vS7lRzTA83G58.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LO/LOMCiGM1vocSFFW4RFgyNFiX6WK3B8mvFGZuuisYoBY.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lc/LcyNhnqqOtUuq06BUwiMQuTY-MNFJT0tSjXh-by5q80.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OG/OGF7sb7C7lrUqW0pYMuUvBpYQDMNCtsV3Z6YwFPJFIQ.cache +2 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Q4/Q4mw4AtNT7BwARDhfEgCOZMkbOAEo1_4O7ZgTDQoONY.cache +1 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T0/T0-eZ6AdCBuT680nfMWxHI2EiT1jRVQqBPjR6HxcNEA.cache +1 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T3/T3lXZuk6Zb4raubZuI30uxqVe-7iYoST1Y6OGS8bEOI.cache +0 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T3/t3-qDbPD0FEwc8Yc6npKzABtlX6JgEcc4rmQUoHAY7o.cache +2 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tu/Tu-IyoztbfwvaZFU1gMdSx2W-68q-Dx2EBIXnAiBa8w.cache +0 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VE/VEGFope5Nt5PaIsptr0zQjHnyoAhncJpVT4P4UTBvzU.cache +1 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vg/VgxK6l09m4bUK9r-BoZkYH0vd_6DpPharoyRDpFzND0.cache +4 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WL/WLnKRpxE8AnmFBN3B5cS-BX-hFCtWZZXR25DOYMkyK0.cache +1 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yd/Ydp4b-OmTu39oBRL88G0Pj-q_Z9n8TEeJGu8jD8fKP4.cache +1 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_3/_37tcxgVFXGCtCy69boPkLe_g94Ja7CZXQpZtUMnubE.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_h/_hXkdmRBJaGnn10JC8YgeNJ7riGxN8aIHX3-wNdzMwA.cache +3 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b-/b-CRB18zEJ0W8FwGiKXrS4-d652qKHYb-IWnFGfNwKE.cache +1 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/br/brab5gafSQ9hLY7MFUiQo-7PgjQa61zLXKIAUD-46Vs.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cY/cYDoBAQFTD5xOCTGdrBydEo2JqEawiwX6fWa3IrUm5Y.cache +0 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/d0/d0uefzjacFcMOQg9VX46kiwllKocVzsVozWt0hRkBrM.cache +0 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dk/Dk9SfX198poaZPH6xB5UDvL3BIurIHdhpEQIOA6_NrY.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dk/dkriEZb9VWN_rkL7ghDD4IcDFYPOc099aP9d-TqjWgs.cache +1 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dq/dqRsht-pLWtsrvCJd6gAvYzMd_bwjGsvhzKFJ4lJKMQ.cache +2 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eQ/eQOTPX0H3QvbPJvwc7vXsTV4yp0tavCkkdx_ZMpV_xY.cache +2 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ej/ejie8YLhXJlxOQcsZwZqhSmZccYE-t2NW6rQ8-pUvX8.cache +1 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gh/gh0m9ohu3CIzUFUvKbWJQL38MsShVWywwcqtDypwpG4.cache +1 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h0/h0A9M_KdAd8osQJeKHNFVXQPlvboa-3PVhGBNsTEaLo.cache +2 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h7/h7IpOHt4eNmpIWAmXJ_phaRYAT3TrFHChvlPe9eDRWg.cache +0 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iP/iPAgBmrq7WERmrolpV9HwXbBKZEt3J5xTsPgzEYlAo4.cache +2 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/js/jsi0BYCHcicTcCdhA7SibHQIgDHEDNgKQTZehDtwMVc.cache +1 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kO/kO0R8Wk-ok-Mk5RCPLgF3B69Tke-qajPdIcz1dctwzw.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ps/psdbPwxTr09SmYyT6Sg4t09okLmqsaXqZ8cDWB2_20w.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q0/q0qu7zCx6lgm2SwlK21QC3pXV1W_el5vZ6scY1dGUDU.cache +1 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sM/sMd9eUxa5puStD62GGA-ruYEThLZ4M9irw8n1sGyhjk.cache +1 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/un/unYhQ5ddiaSGsSPjeeeEttmaIEgnFSEIYwgoJJ0Koy8.cache +1 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/us/usXHehPLU8kxfXFGjkICXXm0yqVwEd_tWr3PDXhFJTo.cache +1 -0
  72. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uy/uy1EA1Oy79kH6kB58GTNUJRZi1BmmRzrPIJDi8gF9nE.cache +1 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v7/v7PGHFSI0GrVv7QZTEQMw9ogpizJTzbOzEs66Kq7BQs.cache +2 -0
  74. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/we/wesb6dLgRIOD8BYJoo_HmOFmXoMUSV6jVSza4SQPOt4.cache +3 -0
  75. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
  76. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zU/zUARB-S48gcDUi5p9yOdhew1I-uauMw41jcPawlWD4k.cache +1 -0
  77. data/spec/factories.rb +22 -0
  78. data/spec/features/method_call_logs_page_spec.rb +60 -0
  79. data/spec/features/method_call_situations_page_spec.rb +64 -0
  80. data/spec/lib/okuribito_rails/observe_method_spec.rb +0 -1
  81. data/spec/spec_helper.rb +5 -1
  82. metadata +150 -2
@@ -0,0 +1 @@
1
+ "%�|=�͐�%��蟒Ǹ�RF>���C���[
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/images/okuribito_rails/logo.png?type=image/png&id=7ea8fda3d600240616bcb66b9d5afc195a628d36df63c86e2129bcd64076beb0:ET
@@ -0,0 +1 @@
1
+ "%����Jqq^��Je<��v���Y�n����
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/method_call_info.css?type=text/css&pipeline=self&id=4c7c7e6292b69184091400b585be71c8e939ad8f56b0e8edad52e2bc7ab6dc68:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"lfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts/okuribito_rails/application.js;TTI"]file-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts/okuribito_rails;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"rfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/method_call_info.css;TTF
@@ -0,0 +1 @@
1
+ "%�d�-�K���`���8Y��3�͹/Y����a~K
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"2processors:type=image/png&file_type=image/png;TTI"afile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/images/okuribito_rails/logo.png;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/application.css?type=text/css&pipeline=self&id=6f57942dc6d0fb353f0464cfb209a3cdf3bb34fcf1b80216f72ba492104198e7:ET
@@ -0,0 +1 @@
1
+ "%��΀�P�2E�z���!�:i�/۸3�11�K{
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/method_call_info.css?type=text/css&id=655d03a67b4ea52b8254b14048b3925753e372e919bc6bdd9d2118299f4fff54:ET
@@ -0,0 +1 @@
1
+ "%�aY}�)�vH`�=�T��y��-��0�@��g~�
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=c4d58c3a1d7479122dd330aa393636f7e48ff18a1b13bd4de615629ec58ce559:ET
@@ -0,0 +1 @@
1
+ "%�|=�͐�%��蟒Ǹ�RF>���C���[
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"rfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/method_call_info.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ "%�_��R��+v��]�4υE����uDK���
@@ -0,0 +1,4 @@
1
+ {:uriI"�file:///Users/ym/works/okuribito_rails_dev/app/assets/images/okuribito_rails/logo.png?type=image/png&id=7ea8fda3d600240616bcb66b9d5afc195a628d36df63c86e2129bcd64076beb0:ET:load_pathI":/Users/ym/works/okuribito_rails_dev/app/assets/images;T:
2
+ @hash}
3
+ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"2processors:type=image/png&file_type=image/png;TTI"afile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/images/okuribito_rails/logo.png;TTF:dependencies_digest"%Ab�[A��l�>��ً��\,&��rb�H������:idI"E7ea8fda3d600240616bcb66b9d5afc195a628d36df63c86e2129bcd64076beb0;F:
4
+ mtimel+��HX
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=853f75a3fc0cfe9ded7c5533ffdc7b30340768998217229415143eefa9f61952:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=8ece5e695d0992b28f3d66885dea1144cbb773757267902000982851891919b3:ET
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/header.css?type=text/css&pipeline=self&id=21a2d1074b4ca04286dda2a8345d03b0afec4775a7918fd81af462fa0b881443:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"~file-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled/action_cable.js;TTF
@@ -0,0 +1 @@
1
+ "%A��G �{h t�l�m�V���NE���f���
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"~file-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled/action_cable.js;TTI"2file-digest://app/assets/javascripts/cable.js;TTI"$file-digest://app/assets/config;TTI"1file-digest://app/assets/config/action_cable;TTI"$file-digest://app/assets/images;TTI"1file-digest://app/assets/images/action_cable;TTI")file-digest://app/assets/javascripts;TTI"6file-digest://app/assets/javascripts/action_cable;TTI")file-digest://app/assets/stylesheets;TTI"6file-digest://app/assets/stylesheets/action_cable;TTI"Hfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/images;TTI"Ufile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/images/action_cable;TTI"Mfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts;TTI"Zfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts/action_cable;TTI"Mfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets;TTI"Zfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/action_cable;TTI"sfile-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled;TTI"{file-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled/action_cable;TTI"2file-digest://app/assets/javascripts/channels;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/javascripts/okuribito_rails/application.js?type=application/javascript&id=a95e1647a802b0170ee93f0d4d1b9ee7b6d08aec8c36b85a93db1a194a6d3cf7:ET
@@ -0,0 +1 @@
1
+ "%�|=�͐�%��蟒Ǹ�RF>���C���[
@@ -0,0 +1,2 @@
1
+ "%
2
+ �i�*6�]+T��$��TN��?�~)뛃s
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"hfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/header.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=d182209fbf95767711afdb67d02fa58dae568bed3529e9274f91cf6db72fb30e:ET
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"mfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"]file-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails;TTI"hfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/header.css;TTI"rfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/method_call_info.css;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"lfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts/okuribito_rails/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"]file-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts/okuribito_rails;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled/action_cable.js?type=application/javascript&pipeline=self&id=aa63a58fbb6a45dc3b8d8868eb22ed234c7b1ef13c4b200463f7408ae03d976b:ET
@@ -0,0 +1 @@
1
+ "%� _���#����;2q�C�ӏ��r��� � jJ�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1 @@
1
+ "%�<������X���̀#+�����,�(o���
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=1c9ab0a223681b2f873a5ee9399d774b6a2681e8e88fa0d2c4f5949886e154cd:ET
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/header.css?type=text/css&id=f18b8f15abb62f27937044cdb8cbbb359f8c3c3bde034f648871c3cf75ea4345:ET
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/javascripts/okuribito_rails/application.js?type=application/javascript&pipeline=self&id=a326a86d8c7d89d4bd269af79630389075d1ca52d3a01a910ba10b07f7831e55:ET
@@ -0,0 +1 @@
1
+ "%A�>��N�6�n���f��9��V�~K��
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1,2 @@
1
+ "%��T���l�
2
+ %�`H�!o��"��}�M�g�
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"hfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/header.css;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"2file-digest://app/assets/javascripts/cable.js;TTI"$file-digest://app/assets/config;TTI"1file-digest://app/assets/config/action_cable;TTI"$file-digest://app/assets/images;TTI"1file-digest://app/assets/images/action_cable;TTI")file-digest://app/assets/javascripts;TTI"6file-digest://app/assets/javascripts/action_cable;TTI")file-digest://app/assets/stylesheets;TTI"6file-digest://app/assets/stylesheets/action_cable;TTI"Hfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/images;TTI"Ufile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/images/action_cable;TTI"Mfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts;TTI"Zfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/javascripts/action_cable;TTI"Mfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets;TTI"Zfile-digest:///Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/action_cable;TTI"sfile-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled;TTI"{file-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled/action_cable;TTI"~file-digest:///Users/ym/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-5.0.0.1/lib/assets/compiled/action_cable.js;TTI"2file-digest://app/assets/javascripts/channels;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/ym/works/okuribito_rails_dev/app/assets/stylesheets/okuribito_rails/application.css?type=text/css&id=9a6d9c9f1b2941bbecfc650417422dfddf0d2a7de045e5767ac7be3fa84fa0c0:ET
data/spec/factories.rb CHANGED
@@ -4,6 +4,28 @@ FactoryGirl.define do
4
4
  method_symbol "#"
5
5
  method_name "deprecated_method"
6
6
  called_num 0
7
+
8
+ trait :user_feed do
9
+ class_name "User"
10
+ method_symbol "#"
11
+ method_name "feed"
12
+ end
13
+
14
+ trait :user_profile do
15
+ class_name "User"
16
+ method_symbol "#"
17
+ method_name "profile"
18
+ end
19
+
20
+ trait :with_method_call_log do
21
+ after(:create) do |method_call_situation|
22
+ FactoryGirl.create(:method_call_log,
23
+ method_call_situation: method_call_situation,
24
+ class_name: method_call_situation.class_name,
25
+ method_symbol: method_call_situation.method_symbol,
26
+ method_name: method_call_situation.method_name)
27
+ end
28
+ end
7
29
  end
8
30
 
9
31
  factory :method_call_log, class: OkuribitoRails::MethodCallLog do
@@ -0,0 +1,60 @@
1
+ RSpec.feature "method_call_log pages", type: :feature do
2
+ def expect_search_area
3
+ within(".search-area") do
4
+ expect(page).to have_content "Class name"
5
+ expect(page).to have_content "Method name"
6
+ end
7
+ end
8
+
9
+ def expect_method_call_info
10
+ within(".method_call_info") do
11
+ expect(page).to have_content "Method name"
12
+ expect(page).to have_content "Backtrace"
13
+ expect(page).to have_content "Recording date"
14
+ end
15
+ end
16
+
17
+ given(:prohibited_env) { false }
18
+
19
+ background do
20
+ allow_any_instance_of(OkuribitoRails::ApplicationController).to receive(:prohibited_env?).and_return(prohibited_env)
21
+ FactoryGirl.create(:method_call_situation, :user_feed, :with_method_call_log, called_num: 1)
22
+ FactoryGirl.create(:method_call_situation, :user_profile, :with_method_call_log, called_num: 0)
23
+
24
+ visit method_call_logs_path
25
+ end
26
+
27
+ context "Prohibit WebUI" do
28
+ given(:prohibited_env) { true }
29
+
30
+ scenario "Forbidden(403)" do
31
+ expect(current_path).to eq method_call_logs_path
32
+ expect(page).to have_http_status(403)
33
+ end
34
+ end
35
+
36
+ context "Permit WebUI" do
37
+ scenario "Succsess page render" do
38
+ expect(current_path).to eq method_call_logs_path
39
+ expect(page).to have_http_status(200)
40
+ expect_search_area
41
+ expect_method_call_info
42
+ expect(page).to have_selector("table.method_call_info tbody tr", count: 3)
43
+ end
44
+
45
+ scenario "Available search function" do
46
+ expect(current_path).to eq method_call_logs_path
47
+ expect(page).to have_http_status(200)
48
+
49
+ within(".search-area") do
50
+ fill_in "class_name", with: "User"
51
+ fill_in "method_name", with: "profile"
52
+ click_button "Search"
53
+ end
54
+
55
+ expect_search_area
56
+ expect_method_call_info
57
+ expect(page).to have_selector("table.method_call_info tbody tr", count: 2)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,64 @@
1
+ RSpec.feature "method_call_situation pages", type: :feature do
2
+ def expect_search_area
3
+ within(".search-area") do
4
+ expect(page).to have_content "Class name"
5
+ expect(page).to have_content "Method name"
6
+ expect(page).to have_content "x days passed"
7
+ expect(page).to have_content "Uncalled method"
8
+ end
9
+ end
10
+
11
+ def expect_method_call_info
12
+ within(".method_call_info") do
13
+ expect(page).to have_content "Method name"
14
+ expect(page).to have_content "Times of called"
15
+ expect(page).to have_content "Days monitored"
16
+ expect(page).to have_content "Monitoring start date"
17
+ end
18
+ end
19
+
20
+ given(:prohibited_env) { false }
21
+
22
+ background do
23
+ allow_any_instance_of(OkuribitoRails::ApplicationController).to receive(:prohibited_env?).and_return(prohibited_env)
24
+ FactoryGirl.create(:method_call_situation, :user_feed, called_num: 1)
25
+ FactoryGirl.create(:method_call_situation, :user_profile, called_num: 0)
26
+ visit method_call_situations_path
27
+ end
28
+
29
+ context "Prohibit WebUI" do
30
+ given(:prohibited_env) { true }
31
+
32
+ scenario "Forbidden(403)" do
33
+ expect(current_path).to eq method_call_situations_path
34
+ expect(page).to have_http_status(403)
35
+ end
36
+ end
37
+
38
+ context "Permit WebUI" do
39
+ scenario "Succsess page render" do
40
+ expect(current_path).to eq method_call_situations_path
41
+ expect(page).to have_http_status(200)
42
+ expect_search_area
43
+ expect_method_call_info
44
+ expect(page).to have_selector("table.method_call_info tbody tr", count: 3)
45
+ end
46
+
47
+ scenario "Available search function" do
48
+ expect(current_path).to eq method_call_situations_path
49
+ expect(page).to have_http_status(200)
50
+
51
+ within(".search-area") do
52
+ fill_in "class_name", with: "User"
53
+ fill_in "method_name", with: "profile"
54
+ fill_in "x_days_passed", with: 0
55
+ check "uncalled_method"
56
+ click_button "Search"
57
+ end
58
+
59
+ expect_search_area
60
+ expect_method_call_info
61
+ expect(page).to have_selector("table.method_call_info tbody tr", count: 2)
62
+ end
63
+ end
64
+ end
@@ -6,7 +6,6 @@ describe OkuribitoRails::ObserveMethod do
6
6
 
7
7
  describe "create MethodCallLog" do
8
8
  before do
9
- allow_any_instance_of(OkuribitoRails::ObserveMethod).to receive(:config_once_detect).and_return(true)
10
9
  FactoryGirl.create(:method_call_situation)
11
10
  okuribito = OkuribitoRails::ObserveMethod.new.patch_okuribito
12
11
  okuribito.apply(setting_path)
data/spec/spec_helper.rb CHANGED
@@ -12,8 +12,12 @@ require File.expand_path("../dummy/config/environment.rb", __FILE__)
12
12
  require "rspec/rails"
13
13
  require "factory_girl"
14
14
  require "factories"
15
+ require "capybara/rspec"
16
+ require "database_cleaner"
15
17
 
16
- require 'database_cleaner'
18
+ RSpec.configure do |config|
19
+ config.include OkuribitoRails::Engine.routes.url_helpers
20
+ end
17
21
 
18
22
  RSpec.configure do |config|
19
23
  config.before(:suite) do