netzke-testing 1.0.0.0.pre → 1.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +4 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +15 -13
  5. data/app/assets/javascripts/netzke/testing/expect/expect.js +80 -48
  6. data/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee +2 -3
  7. data/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee +9 -5
  8. data/app/assets/javascripts/netzke/testing/mocha/mocha.js +8411 -2527
  9. data/lib/netzke/testing/helpers.rb +4 -4
  10. data/lib/netzke/testing/version.rb +1 -1
  11. data/spec/rails_app/log/test.log +94 -0
  12. data/spec/rails_app/tmp/cache/sprockets/v3.0/-o-YaVl0T7eDJ9OrOV9RGwqVsIWZFHy_ANOiYAzd5xs.cache +2 -0
  13. data/spec/rails_app/tmp/cache/sprockets/v3.0/07iOyrEomMGnZKLKBODn5NGKubEAwYg22zHsJOJLqGs.cache +1 -0
  14. data/spec/rails_app/tmp/cache/sprockets/v3.0/0ytTgUbUdaNC4f2HwTF9KPoNfEPoelbdxEEonmXcFY8.cache +1 -0
  15. data/spec/rails_app/tmp/cache/sprockets/v3.0/1fidLos4TsMC1Jzat66F4EuJMnvA4Ek4Yq3Wx_diqLA.cache +2 -0
  16. data/spec/rails_app/tmp/cache/sprockets/v3.0/2vHlMhGtlMaZb82omedAl26ALVO0Fkpnzrs2A0t0dhQ.cache +1 -0
  17. data/spec/rails_app/tmp/cache/sprockets/v3.0/39zPPJcr0tE1H4qUKdVLTgBn95i3CcWTw7iIySpP6cs.cache +0 -0
  18. data/spec/rails_app/tmp/cache/sprockets/v3.0/3zmYCO5dspDitWP7JYhr__7BgKz1CVbO5G5II9Glh9Q.cache +0 -0
  19. data/spec/rails_app/tmp/cache/sprockets/v3.0/4_18vLnsZaNqO4dzM3KZwlOI_W46PV3HB7wQnYnmFcQ.cache +0 -0
  20. data/spec/rails_app/tmp/cache/sprockets/v3.0/5GrPnQc9e0-MX1Gp22so31KMZYHH0py0br_lgFkZ_kI.cache +0 -0
  21. data/spec/rails_app/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  22. data/spec/rails_app/tmp/cache/sprockets/v3.0/5dJ6VNUb4OFNV6u-YrjcCBnPJuR9tf9hL3s_faXrBP0.cache +0 -0
  23. data/spec/rails_app/tmp/cache/sprockets/v3.0/6Hb98UcW0wjj_i_HD2j2tX9E_IWDhUs7jytk9bRWTD4.cache +1 -0
  24. data/spec/rails_app/tmp/cache/sprockets/v3.0/9EFnUGe2JNSgdn0_guGDgGlzN9fSRTV-LUCHI9Np3m0.cache +0 -0
  25. data/spec/rails_app/tmp/cache/sprockets/v3.0/9rQm4rWb6Fyy0YNY6qIn3Klwh-E-riSs3vJu81_Gyto.cache +3 -0
  26. data/spec/rails_app/tmp/cache/sprockets/v3.0/ALdwNICuA37_nmLiqc8RMqu61rCn_g8j-_jvCtDZIM0.cache +1 -0
  27. data/spec/rails_app/tmp/cache/sprockets/v3.0/BT0NlH5e-SMXSFoONZqKAfPuxkCaZq9t03GG-tbqf2A.cache +1 -0
  28. data/spec/rails_app/tmp/cache/sprockets/v3.0/Bl29XyeX1cHzQPc9fI44GTuVcxQL6XfPJVt_GX6lhzo.cache +1 -0
  29. data/spec/rails_app/tmp/cache/sprockets/v3.0/CeuWmVqZWhwboK9KGiK-VGwtZYLrqCRI93rvJQIBTXs.cache +2 -0
  30. data/spec/rails_app/tmp/cache/sprockets/v3.0/D_M27jz_Y2ZtpKgI0NLbeaMjjW-dnm5H-q6vlb9Cgdc.cache +3 -0
  31. data/spec/rails_app/tmp/cache/sprockets/v3.0/DyZ-otksXNhNzMmBzaVD-I26JqXpFnAAHKDNiDm0AnA.cache +2 -0
  32. data/spec/rails_app/tmp/cache/sprockets/v3.0/FXVz3Pwk3Lx2AlWWo3N60Q7YFpQ09dRh1TrauXneQAA.cache +3 -0
  33. data/spec/rails_app/tmp/cache/sprockets/v3.0/Gr8ZzR4L-gtkpAh9nM59jAeEZdyf-OdokQaWCec_INo.cache +1 -0
  34. data/spec/rails_app/tmp/cache/sprockets/v3.0/H09-6S0HJW5eYPA2z1phpE0atkN0CGHs1N_3NeX1vg0.cache +0 -0
  35. data/spec/rails_app/tmp/cache/sprockets/v3.0/HqBAFMrJkSiiEp7NwTEVCY6TfMEq6uCsOyT4hkxQzl0.cache +1 -0
  36. data/spec/rails_app/tmp/cache/sprockets/v3.0/LLDmKhbry6kmwl-luJ7zqH0EpQzgmXaiphllEglzBPY.cache +1 -0
  37. data/spec/rails_app/tmp/cache/sprockets/v3.0/L_-HXUTuvz1fj3rSHaqPaaqmdrcKL_nAjJjFRYsCKns.cache +0 -0
  38. data/spec/rails_app/tmp/cache/sprockets/v3.0/N2bgPvor8Oc-6ruUenJnq3JCgXTFOxboIXy77NtSpn4.cache +3 -0
  39. data/spec/rails_app/tmp/cache/sprockets/v3.0/NOfTwd49eb86ANBlpdBndMO4ImhsuP1GRpxDAgwAfx4.cache +3 -0
  40. data/spec/rails_app/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +3 -0
  41. data/spec/rails_app/tmp/cache/sprockets/v3.0/OMy74nraRyab7NpwdTKgIcT71Nor8p3vccpmPY9JFVg.cache +1 -0
  42. data/spec/rails_app/tmp/cache/sprockets/v3.0/Q7419vAxXSvXRDjq-scnxsPHd0HadXBzkG4xsnYq9Qs.cache +1 -0
  43. data/spec/rails_app/tmp/cache/sprockets/v3.0/QHDu6s3NsziHdqvv8bty6Ez-fJ32BUsSh-cTb1jMwew.cache +0 -0
  44. data/spec/rails_app/tmp/cache/sprockets/v3.0/QW--4tkWOk_XF1gyoYZDRCyDehMpmnuVayrZKMVqZ7M.cache +2 -0
  45. data/spec/rails_app/tmp/cache/sprockets/v3.0/Qil2vZGP6D36sK3wv91KnVKtRUrj6cr1QQskelyTk9Y.cache +1 -0
  46. data/spec/rails_app/tmp/cache/sprockets/v3.0/RBIGkPIcm4EWMEbCxZN202ZnpKF-q7vmu9Wd1d2KBCg.cache +1 -0
  47. data/spec/rails_app/tmp/cache/sprockets/v3.0/REXd2v4jF9rojlxSTKezbfWQHrV0h16YKzAyEyJFWEM.cache +1 -0
  48. data/spec/rails_app/tmp/cache/sprockets/v3.0/Rzez3kkE4eNMtC1yya3kzO7BXS6d7LAAKDMPkxOuG_0.cache +1 -0
  49. data/spec/rails_app/tmp/cache/sprockets/v3.0/ScFPNKnHQisSmiOxG1guWdIbbXilNmOQhME5BDwNiv4.cache +0 -0
  50. data/spec/rails_app/tmp/cache/sprockets/v3.0/Ui7uJXKUZafSM-Pg057JUmpEm6b1W8Nv-0yn3fz3xZ0.cache +106 -0
  51. data/spec/rails_app/tmp/cache/sprockets/v3.0/Uz0vobQn_2cof5CLzZsjRzJWBGzGfa3a9ouwXy2FjC4.cache +1 -0
  52. data/spec/rails_app/tmp/cache/sprockets/v3.0/W6Eph3scwYK-6sdVKmEL27OnPYBnKiP8kmH8bCHCsJA.cache +1 -0
  53. data/spec/rails_app/tmp/cache/sprockets/v3.0/WPeLjGJ9cBoHaKcawtXwNU9UEiNKXtjT6if7aDyJ-iE.cache +0 -0
  54. data/spec/rails_app/tmp/cache/sprockets/v3.0/YLGNWWpHA4nUart3qBGUKfKtjEfDi6XBOOmqOM2dwsY.cache +1 -0
  55. data/spec/rails_app/tmp/cache/sprockets/v3.0/YWY4C1elKF3eYF9e4lGmKJ8Mlw7w-fDkMF5zkR_DOHU.cache +1 -0
  56. data/spec/rails_app/tmp/cache/sprockets/v3.0/_F-1UKfUa2G5bFoBdU02i5zBUtpiYzqiMUnu0QU5ePY.cache +1 -0
  57. data/spec/rails_app/tmp/cache/sprockets/v3.0/_PrGVuJb9IMfw0jLcId6JwfiXGtsgrKsYvQ_oFFvnpg.cache +2 -0
  58. data/spec/rails_app/tmp/cache/sprockets/v3.0/aEe8dZBMoJN_L7dQ9O90etuJwhYBZaxRLXPLkI4lwXU.cache +3 -0
  59. data/spec/rails_app/tmp/cache/sprockets/v3.0/aIoqzJKq3BKLPn0NJ80EsPM54p1fTGdEaS1LhASLplY.cache +2 -0
  60. data/spec/rails_app/tmp/cache/sprockets/v3.0/azdeIsF9HPA4WivyJx01EAdzHHXs1UJ6Pu8SOb2Ex0E.cache +0 -0
  61. data/spec/rails_app/tmp/cache/sprockets/v3.0/bigAjWfxtrTpxpryFTjOzuZDpQN1TQn2LgyC2UX608A.cache +3 -0
  62. data/spec/rails_app/tmp/cache/sprockets/v3.0/cC4aVV6WxpZQ1JV9tiqJ7c1SHial-X4fXVKIL_0cSNk.cache +1 -0
  63. data/spec/rails_app/tmp/cache/sprockets/v3.0/codNO61Rpx13n_h4WzazQzWJbqM2w7xTmJBkRVGASrE.cache +0 -0
  64. data/spec/rails_app/tmp/cache/sprockets/v3.0/dffd5W19TVYHR7lYQ0z0g1-48SLMJ8w-3bcHGKSvk08.cache +0 -0
  65. data/spec/rails_app/tmp/cache/sprockets/v3.0/eGYqHx1cCGAuRnisa20DTioHGAdMqGSeYY4IeG4Aq18.cache +0 -0
  66. data/spec/rails_app/tmp/cache/sprockets/v3.0/fOMwhE_LoK6PBz43rr86imRHqStpfn-j0zKwNCEFA7A.cache +2 -0
  67. data/spec/rails_app/tmp/cache/sprockets/v3.0/i4_Ww4zBhRbFxc9qsCIEWpRilLf1e0Z6XnnWNP6aDk4.cache +1 -0
  68. data/spec/rails_app/tmp/cache/sprockets/v3.0/iJJjYfLFaJGOB1qhv6XaJXbg6cr-dXZT3m6NbIKJevw.cache +1 -0
  69. data/spec/rails_app/tmp/cache/sprockets/v3.0/j0GxKFTTXVLhgLP0leVrUzi9J5Vk0iv5I3Etnvf1hKo.cache +3 -0
  70. data/spec/rails_app/tmp/cache/sprockets/v3.0/jUcv_4GPi-D5jFNvcEkNKl60eXmJV3voiuFymwpMEZc.cache +2 -0
  71. data/spec/rails_app/tmp/cache/sprockets/v3.0/jm7Gb16iEsab2-4biVjNid9a3ke7Hsf5sazXIGeh2AA.cache +2 -0
  72. data/spec/rails_app/tmp/cache/sprockets/v3.0/lQyPIDuSoqpRLpSFgmdv8Rps26WUfL-WnrGh8X1QrZk.cache +0 -0
  73. data/spec/rails_app/tmp/cache/sprockets/v3.0/ldEt04XepuHp4zFw0wvm2tmp7PHzbvoMqE0dMgHHyiM.cache +1 -0
  74. data/spec/rails_app/tmp/cache/sprockets/v3.0/ll77fKHQUerwje4lfYSqXNfr3bbSm72YVxIeBEmyppc.cache +0 -0
  75. data/spec/rails_app/tmp/cache/sprockets/v3.0/mLQH-sbNxQ8DaRts0YE737TG8kOVWTVCss14WfPAZ7g.cache +1 -0
  76. data/spec/rails_app/tmp/cache/sprockets/v3.0/moNLOTsHz0Ydgt_tVujBaPpE86MfBSWgb6Epm6bsPqY.cache +0 -0
  77. data/spec/rails_app/tmp/cache/sprockets/v3.0/nONU3x7H75eQ2Xaw3GMC0pKEWPyMtRxMJ9Y-l0Ayq6M.cache +33 -0
  78. data/spec/rails_app/tmp/cache/sprockets/v3.0/o-8a91fGF4bF1Mo6fJYIzosTQ-z0oMNGqELLH9S-GxM.cache +1 -0
  79. data/spec/rails_app/tmp/cache/sprockets/v3.0/piE6YVSIuBGMcd2x9kKYtpRLjB-sOJ2sdaeKIssE6wg.cache +1 -0
  80. data/spec/rails_app/tmp/cache/sprockets/v3.0/pp0d6Mo8UZHyEjp0aPeDYY5LE_QPXLXy8tioOcVQlkI.cache +3 -0
  81. data/spec/rails_app/tmp/cache/sprockets/v3.0/rIo7JXnH6RylOxntf3nby_YI_Y3PtklcrYF_ZlbocTY.cache +0 -0
  82. data/spec/rails_app/tmp/cache/sprockets/v3.0/rdNEJjsX13ByMJoPOuPtykhHbAIZGrqz9xdWy9P4seI.cache +0 -0
  83. data/spec/rails_app/tmp/cache/sprockets/v3.0/sbkgYxjKRuP8wk525y6VBNm00JCRW3rELt3mRvcfhUo.cache +13 -0
  84. data/spec/rails_app/tmp/cache/sprockets/v3.0/soD41VoXkrbH1EpLB28yGAgncKYlSlPzn2QG6FpLmTY.cache +0 -0
  85. data/spec/rails_app/tmp/cache/sprockets/v3.0/tOP7iXMW__b5nlhKzVYB6w2CqeCooG4O8M4B5dXqgSk.cache +1 -0
  86. data/spec/rails_app/tmp/cache/sprockets/v3.0/tlD3wYEmMzUG8rkcNz9GwHodH3fku_b240j895xS0Xw.cache +1 -0
  87. data/spec/rails_app/tmp/cache/sprockets/v3.0/tr62WvZYSb5NNmu1FPwoBQzTXhHF6e3PoixrqWHGK1I.cache +0 -0
  88. data/spec/rails_app/tmp/cache/sprockets/v3.0/ty1cXRpXqEnPYMFWKm8qVoLv1JkiOtT9BWTaSXoLI9c.cache +1 -0
  89. data/spec/rails_app/tmp/cache/sprockets/v3.0/vbftfVT4MTnYWfCL30aVfw2QofXiWvLUejwi11r_mPU.cache +0 -0
  90. data/spec/rails_app/tmp/cache/sprockets/v3.0/wKOMf-Sw5RV2z6tocysQ-Lp_WjC4AKfSftpnK9-CUcg.cache +1 -0
  91. data/spec/rails_app/tmp/cache/sprockets/v3.0/wisHDpCMSc22lTsGeee4BWwERbE5ZVWMsArIV1XI41g.cache +0 -0
  92. data/spec/rails_app/tmp/cache/sprockets/v3.0/wmPDgrxhKM3ep5L2Wpxxp0zjuvgNXYHKlFY7a8Cv_mY.cache +1 -0
  93. data/spec/rails_app/tmp/cache/sprockets/v3.0/xz5aZYcS9RYBKIAYIGo8NA6OJ0zS1A_2YUjm-5YEgX8.cache +0 -0
  94. data/spec/rails_app/tmp/cache/sprockets/v3.0/yqnrYB_p9wjvOW9aTar8YP17tUVeKL0vv5gKw42K-xs.cache +1 -0
  95. data/spec/rails_app/tmp/cache/sprockets/v3.0/zVcdr4mnvtszU1y-2twwNb1pKNesauWRZEzeg8KuyI8.cache +1 -0
  96. data/spec/rails_app/tmp/cache/sprockets/v3.0/zqUk2pSqqUA61GTRQEHqzW2awxP7nrwKFq17PEgofBI.cache +2 -0
  97. data/spec/testing_controller_spec.rb +4 -4
  98. metadata +276 -110
@@ -1,3 +1,5 @@
1
+ class MochaSpecsError < RuntimeError; end
2
+
1
3
  module Netzke::Testing::Helpers
2
4
  def run_mocha_spec(path, options = {})
3
5
  @component = options[:component] || path.camelcase
@@ -34,7 +36,6 @@ module Netzke::Testing::Helpers
34
36
  return {
35
37
  test: runner.test.title,
36
38
  success: runner.stats.failures == 0 && runner.stats.tests !=0,
37
- error: runner.test.err && runner.test.err.toString(),
38
39
  errors: errors
39
40
  }
40
41
  JS
@@ -43,11 +44,10 @@ module Netzke::Testing::Helpers
43
44
  sleep 1.year if stop_on_error
44
45
 
45
46
  errors = result["errors"].each_with_index.map do |(title, error), i|
46
- "#{i+1}) #{title}\n#{error}\n\n"
47
+ "#{i+1}) in '#{title}':\n#{error}\n"
47
48
  end
48
49
 
49
- raise "Failures:\n#{errors.join}"
50
- raise "Test failed: #{result["test"]}\n#{result["error"]}"
50
+ raise MochaSpecsError, errors.join
51
51
  end
52
52
  end
53
53
  end
@@ -1,5 +1,5 @@
1
1
  module Netzke
2
2
  module Testing
3
- VERSION = "1.0.0.0.pre"
3
+ VERSION = "1.0.0.0"
4
4
  end
5
5
  end
@@ -2919,3 +2919,97 @@ Processing by Netzke::TestingController#components as HTML
2919
2919
  Parameters: {"class"=>"Foo"}
2920
2920
  Rendered inline template within layouts/netzke/testing (4.4ms)
2921
2921
  Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
2922
+ Started GET "/netzke/components/Foo" for 127.0.0.1 at 2016-01-02 15:03:55 +0700
2923
+ Processing by Netzke::TestingController#components as HTML
2924
+ Parameters: {"class"=>"Foo"}
2925
+ Rendered inline template within layouts/netzke/testing (22.3ms)
2926
+ Completed 200 OK in 39ms (Views: 38.3ms | ActiveRecord: 0.0ms)
2927
+ Started GET "/netzke/components/Foo?no-helpers=true&spec=true" for 127.0.0.1 at 2016-01-02 15:03:55 +0700
2928
+ Processing by Netzke::TestingController#components as HTML
2929
+ Parameters: {"no-helpers"=>"true", "spec"=>"true", "class"=>"Foo"}
2930
+ Rendered inline template within layouts/netzke/testing (1.1ms)
2931
+ Completed 200 OK in 1550ms (Views: 1549.5ms | ActiveRecord: 0.0ms)
2932
+ Started GET "/netzke/components/Foo?spec=true" for 127.0.0.1 at 2016-01-02 15:03:56 +0700
2933
+ Processing by Netzke::TestingController#components as HTML
2934
+ Parameters: {"spec"=>"true", "class"=>"Foo"}
2935
+ Rendered inline template within layouts/netzke/testing (2.3ms)
2936
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)
2937
+ Started GET "/netzke/components/Foo" for 127.0.0.1 at 2016-01-02 15:03:57 +0700
2938
+ Processing by Netzke::TestingController#components as HTML
2939
+ Parameters: {"class"=>"Foo"}
2940
+ Rendered inline template within layouts/netzke/testing (1.3ms)
2941
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
2942
+ Started GET "/netzke/components/Foo?spec=foo" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2943
+ Processing by Netzke::TestingController#components as HTML
2944
+ Parameters: {"spec"=>"foo", "class"=>"Foo"}
2945
+ Rendered inline template within layouts/netzke/testing (2.4ms)
2946
+ Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
2947
+ Started GET "/netzke/ext.css" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2948
+ Processing by NetzkeController#ext as CSS
2949
+ Rendered text template (0.0ms)
2950
+ Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.0ms)
2951
+ Started GET "/assets/netzke/testing/mocha/mocha-7a4158bdf7a16264cde856e8511e8cf2d534f27d55b54f6145e58e759589c0d2.css" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2952
+ Started GET "/netzke/ext.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2953
+ Processing by NetzkeController#ext as JS
2954
+ Rendered text template (0.0ms)
2955
+ Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2956
+ Started GET "/assets/netzke/testing/expect/expect-63cb4ef58b655453e779cbda4e97f63d9a759dae6e7da9546b808965c3b7b3c1.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2957
+ Started GET "/assets/netzke/testing/helpers/actions-ae53185013611cc6e08d35b6ec729e3fc899944618a42c43295e1195bf1de9c8.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2958
+ Started GET "/assets/netzke/testing/helpers/queries-0f75857e2b9ef5947be81f2bee6eab3ff798deb929cd8e82f2bcca5ad11d3237.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2959
+ Started GET "/assets/netzke/testing/mocha/mocha-8a18677db56c99643114331e1d8c88e009b85f18c2307a888d490f6625b85e84.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2960
+ Started GET "/assets/netzke/testing/helpers/expectations-b99effe5dcb7831eaedede52ca82267813904dbbdfee72b00ae95533953f7301.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2961
+ Started GET "/assets/netzke/testing/helpers/grid-e3fd209c7470e8a3a30529b0485fa5b8927b353dc89fc2402ae17956a84d873f.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2962
+ Started GET "/netzke/specs/foo.js" for 127.0.0.1 at 2016-01-02 15:03:58 +0700
2963
+ Processing by Netzke::TestingController#specs as JS
2964
+ Parameters: {"name"=>"foo"}
2965
+ Rendered text template (0.0ms)
2966
+ Completed 200 OK in 242ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2967
+ Started GET "/assets/netzke/testing/helpers/form-d62579ed941eef046a57fcf3ff5c3615db7562de5c50863550df5ddba0e97279.js" for 127.0.0.1 at 2016-01-02 15:03:59 +0700
2968
+ Started GET "/assets/netzke/testing-be179fcf7bbc53ebd35461556b67f6c1c77272b540d511bb365a039d5a387cc0.js" for 127.0.0.1 at 2016-01-02 15:03:59 +0700
2969
+ Started GET "/netzke/components/Foo?spec=true" for 127.0.0.1 at 2016-01-02 15:05:58 +0700
2970
+ Processing by Netzke::TestingController#components as HTML
2971
+ Parameters: {"spec"=>"true", "class"=>"Foo"}
2972
+ Rendered inline template within layouts/netzke/testing (20.9ms)
2973
+ Completed 200 OK in 215ms (Views: 214.7ms | ActiveRecord: 0.0ms)
2974
+ Started GET "/netzke/components/Foo" for 127.0.0.1 at 2016-01-02 15:05:58 +0700
2975
+ Processing by Netzke::TestingController#components as HTML
2976
+ Parameters: {"class"=>"Foo"}
2977
+ Rendered inline template within layouts/netzke/testing (2.5ms)
2978
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
2979
+ Started GET "/netzke/components/Foo" for 127.0.0.1 at 2016-01-02 15:05:58 +0700
2980
+ Processing by Netzke::TestingController#components as HTML
2981
+ Parameters: {"class"=>"Foo"}
2982
+ Rendered inline template within layouts/netzke/testing (2.1ms)
2983
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
2984
+ Started GET "/netzke/components/Foo?no-helpers=true&spec=true" for 127.0.0.1 at 2016-01-02 15:05:58 +0700
2985
+ Processing by Netzke::TestingController#components as HTML
2986
+ Parameters: {"no-helpers"=>"true", "spec"=>"true", "class"=>"Foo"}
2987
+ Rendered inline template within layouts/netzke/testing (2.0ms)
2988
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
2989
+ Started GET "/netzke/components/Foo?spec=foo" for 127.0.0.1 at 2016-01-02 15:06:00 +0700
2990
+ Processing by Netzke::TestingController#components as HTML
2991
+ Parameters: {"spec"=>"foo", "class"=>"Foo"}
2992
+ Rendered inline template within layouts/netzke/testing (1.9ms)
2993
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
2994
+ Started GET "/assets/netzke/testing/mocha/mocha-7a4158bdf7a16264cde856e8511e8cf2d534f27d55b54f6145e58e759589c0d2.css" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
2995
+ Started GET "/netzke/ext.css" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
2996
+ Processing by NetzkeController#ext as CSS
2997
+ Rendered text template (0.0ms)
2998
+ Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms)
2999
+ Started GET "/assets/netzke/testing/expect/expect-63cb4ef58b655453e779cbda4e97f63d9a759dae6e7da9546b808965c3b7b3c1.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3000
+ Started GET "/netzke/ext.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3001
+ Processing by NetzkeController#ext as JS
3002
+ Rendered text template (0.0ms)
3003
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.0ms)
3004
+ Started GET "/assets/netzke/testing/helpers/actions-ae53185013611cc6e08d35b6ec729e3fc899944618a42c43295e1195bf1de9c8.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3005
+ Started GET "/assets/netzke/testing/mocha/mocha-8a18677db56c99643114331e1d8c88e009b85f18c2307a888d490f6625b85e84.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3006
+ Started GET "/assets/netzke/testing/helpers/queries-0f75857e2b9ef5947be81f2bee6eab3ff798deb929cd8e82f2bcca5ad11d3237.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3007
+ Started GET "/assets/netzke/testing/helpers/expectations-b99effe5dcb7831eaedede52ca82267813904dbbdfee72b00ae95533953f7301.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3008
+ Started GET "/netzke/specs/foo.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3009
+ Processing by Netzke::TestingController#specs as JS
3010
+ Parameters: {"name"=>"foo"}
3011
+ Rendered text template (0.0ms)
3012
+ Completed 200 OK in 379ms (Views: 0.4ms | ActiveRecord: 0.0ms)
3013
+ Started GET "/assets/netzke/testing-be179fcf7bbc53ebd35461556b67f6c1c77272b540d511bb365a039d5a387cc0.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3014
+ Started GET "/assets/netzke/testing/helpers/form-d62579ed941eef046a57fcf3ff5c3615db7562de5c50863550df5ddba0e97279.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
3015
+ Started GET "/assets/netzke/testing/helpers/grid-e3fd209c7470e8a3a30529b0485fa5b8927b353dc89fc2402ae17956a84d873f.js" for 127.0.0.1 at 2016-01-02 15:06:01 +0700
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"cfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing.js;TTF
@@ -0,0 +1 @@
1
+ "%(�b��~$��LXT�w��;�jce�h�H�k��
@@ -0,0 +1 @@
1
+ "%���{�S��TaUkg���rr�@��6Z�Z8|�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;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://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/netzke;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee?type=application/javascript&pipeline=self&id=3fc7206ea1c95b18f204ef84e925f16ac6a70ebd6b3858a813f1f45f2eb42bcd:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;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
+ "%p�@�x� ��^�ǯ1U����h�DeL�zJ�
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee?type=application/javascript&pipeline=self&id=d346f95ec18e16409c878612eb2aa72ea0c93e4f5677b4c98967b37e691aac17:ET
@@ -0,0 +1 @@
1
+ "%k��n����<�P]jn�TX��Z�"C�|i
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee?type=application/javascript&pipeline=self&id=9984ba9eea244bd6bf74baba514cf82b12533642dac0c6ddf1dd0f578dceae0b:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"qfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/expect/expect.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee?type=application/javascript&id=b66f7c10c70ff84bd0e1ce262eeb7f69e1e941d80bb1c5803e45b2ff24387d12:ET
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1 @@
1
+ "%-����k�ŏ�5g�A��A]������pMt^7/�
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ofile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/mocha/mocha.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"file-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;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 @@
1
+ "%c�N��eTS�y��N��=�u��n}�Tk��e÷��
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/stylesheets/netzke/testing/mocha/mocha.css?type=text/css&id=3815532c39ad0af2341f6c3d36465321912d44fed24e9a0e9538b909e5371f25:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"pfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/stylesheets/netzke/testing/mocha/mocha.css;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee?type=application/javascript&id=c6dc102b80ce34e9667b60b7d9a32fed882fefeb9d963a7b7f452657a99769b0:ET
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee?type=application/javascript&pipeline=self&id=1e405c9f09e4cd64d0fded677608698bca14efc74a9f353b46005b55e2099413:ET
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee?type=application/javascript&id=da55513bb0437911b064d83ca0a51bec82798b80db67310c4be633bb4ad5dcf3:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=4b760e57a898c5bc6eb835b3f35f44c78737afb6f4d2893e66b2fe83d93242a5:ET
@@ -0,0 +1,106 @@
1
+ I"�
2
+ (function() {
3
+ Ext.Ajax.on('beforerequest', function() {
4
+ Netzke.ajaxCount = window.ajaxCount || 0;
5
+ return Netzke.ajaxCount += 1;
6
+ });
7
+
8
+ Ext.Ajax.on('requestcomplete', function() {
9
+ return Netzke.ajaxCount -= 1;
10
+ });
11
+
12
+ Ext.Ajax.on('requestexception', function() {
13
+ return Netzke.ajaxCount -= 1;
14
+ });
15
+
16
+ Ext.apply(window, {
17
+ wait: function() {
18
+ var callback, delay, waitInCycle;
19
+ waitInCycle = function(resolve) {
20
+ var i, id;
21
+ i = 0;
22
+ return id = setInterval(function() {
23
+ i += 1;
24
+ if (i >= 100) {
25
+ clearInterval(id);
26
+ resolve.call();
27
+ }
28
+ if (Netzke.ajaxCount === 0) {
29
+ return i = 100;
30
+ }
31
+ }, 200);
32
+ };
33
+ if (typeof arguments[0] === 'function') {
34
+ return waitInCycle(arguments[0]);
35
+ }
36
+ if (Ext.isNumber(arguments[0])) {
37
+ if (Ext.isFunction(arguments[1])) {
38
+ delay = arguments[0];
39
+ callback = arguments[1];
40
+ setInterval(function() {
41
+ return waitInCycle(resolve);
42
+ }, delay);
43
+ return null;
44
+ } else {
45
+ delay = arguments[0];
46
+ return new Promise(function(resolve, reject) {
47
+ return setInterval(function() {
48
+ return waitInCycle(resolve);
49
+ }, delay);
50
+ });
51
+ }
52
+ }
53
+ return new Promise(function(resolve, reject) {
54
+ return waitInCycle(resolve);
55
+ });
56
+ },
57
+ click: function(cmp) {
58
+ var el;
59
+ if (Ext.isString(cmp)) {
60
+ throw "Could not locate " + cmp;
61
+ } else if (cmp.isXType) {
62
+ if (cmp.isXType('tool')) {
63
+ el = cmp.toolEl;
64
+ } else {
65
+ el = cmp.getEl();
66
+ }
67
+ return el.dom.click();
68
+ } else if (Ext.isElement(cmp)) {
69
+ return cmp.click();
70
+ }
71
+ },
72
+ closeWindow: function() {
73
+ return Ext.ComponentQuery.query("window[hidden=false]")[0].close();
74
+ },
75
+ select: function(value, params, callback) {
76
+ var combo, rec;
77
+ if (params == null) {
78
+ params = params;
79
+ }
80
+ combo = params["in"];
81
+ if (combo.isExpanded) {
82
+ combo.setValue(combo.findRecordByDisplay(value));
83
+ return combo.collapse();
84
+ } else {
85
+ combo.onTriggerClick();
86
+ if (callback) {
87
+ return wait(function() {
88
+ var rec;
89
+ rec = combo.findRecordByDisplay(value);
90
+ combo.select(rec);
91
+ combo.fireEvent('select', combo, rec);
92
+ combo.collapse();
93
+ return callback.call();
94
+ });
95
+ } else {
96
+ rec = combo.findRecordByDisplay(value);
97
+ combo.select(rec);
98
+ combo.fireEvent('select', combo, rec);
99
+ return combo.collapse();
100
+ }
101
+ }
102
+ }
103
+ });
104
+
105
+ }).call(this);
106
+ :ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=c16c1dd6fa9a05b10bd5632efb31d688005fd1637fd388c3b2846d79e55819f5:ET
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee?type=application/javascript&pipeline=self&id=c9cce53ad3ddb4005183c1e25e23baa1f2789982f51c36e13f172690413c7835:ET
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee?type=application/javascript&id=8bd398301f12a7afb331f3614ff17520b6fb3ef807c0445c5e595596f7cb5a36:ET
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing.js?type=application/javascript&pipeline=self&id=07e66b2b04e4fa6a0a8d029d323605d993c8000bab76682d06be8b7d30dca932:ET
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee?type=application/javascript&id=5b4345b1be88f5448199cfa5e0dfdbd875a7f2342c999dec0336b315ad245b2b:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"cfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"qfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/expect/expect.js;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ "%G'0�׏o���8(Ho����T�2�[/_u�ǖ�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/netzke;TTF
@@ -0,0 +1 @@
1
+ "%��i���� ��<�a��.���#�@�N� �
@@ -0,0 +1 @@
1
+ I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/expect/expect.js?type=application/javascript&id=7c70070dee80fb4c4f1f96ad048c56e1ecfd5dc9d1ec389b2015a9b09b865b28:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"pfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/stylesheets/netzke/testing/mocha/mocha.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"file-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee;TTF