gov_uk_date_fields 3.2.0.rc3 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gov_uk_date_fields/version.rb +2 -2
- data/test/dummy/log/test.log +3681 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0C/0C2zg6Fz4ZDKb2SJoMeKCyuiEkK3VLTLoXTk6XtsYnk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1q/1qTKTELCNcaTGecih6WmU5XbelY0-n9ECxNFb7B3NDY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/23/23OcjleyoUnN5T0v_oEwEEVK7l5HEyIO_KGRr2Makg0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2v/2vYH0-57Ot7PCLWkuyRiVWFoDqDAisPuU54eB1XCuZs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/87/87lBrKaac9bxHnrcDd3_kuqKV7Cn2kb3-9Yh1xDySjo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dw/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bE/bEgoYkpGjiyAWAaXBvA_-Aya6FVRKq3XugvZkD08uXQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kB/kBO5u1GYzp_3At4KdTa7gu6M-8iJYzXwK7awXVhfdqQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmLdQ9YYUNBpTGdPEpu9Jg8U72UBOztolRY2JGn69PQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nP/nPNMfuYlHJYq2PChYn-dJcrv2a_jlRXt70OIDOC2f3A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oR/oREyRPrhTN2nImWV9UIIivSk5CeZ7vpcmwFg6CMNoGQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qK/qKwRM7szJUtdx-IcB_777nsCap0rkqBzoVO9zNTaLsY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xo/xo0vwho1GEXuJPGLrvAxM5Ag7xiZme4jPtTrZL2wSGY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yG/yGhSuZRuCtgZCBYZtGTzP3HHN73lpDEh0ZSY9fXMr74.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zF/zFkhrrravmeW44GBd3ZlMtqo96To6Zso0hWQ_7NIgU4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0F/0FBvTP5GR23sqfKQqc3ndsfMXyIceqNSEMDGdeKx-iw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0I/0I0SJYh6xyz2kJ-P0dZ1c8kq_lc0wkRDY1ZEeAombQo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0a/0a16TXIS237lMaBIne5Nr5Zz_LkXQroGtjhqyUhCOYQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/11/11ovRdbo434VRd2K0Sat3eZTuQn6hLBSz69i01_fDZ8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2U/2UTPo9bZtE2VMmv3ozQT5LpfnndJo1TaQ6VAOY0dAFQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2d/2dhiBTjBCH6rUfCJGoAp3fXgrDHxLIrybhE4TAS2su8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4e/4eJoHAAJ4SF9Yw_4r61OtLTF9pK28G2ESTXYTkgT0qQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4g/4gt5Zf3XYLpssAYW6ANTaUFYel_6yWgzo9gI0M-lR6E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/52/5248EdGUC74D1uVXiRxivkYvXF6xizQCiiKneqnfik4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5y/5Y9YnqLJJcIPyOyVcyWfDDb-U8nRpHueM2YGPtYmZm4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5y/5y-aQ4cIum-_A2jTKUwbHTzo6AL99_jhiXTAcxlc5Ss.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/6H/6H4HGvZ3o4Pj8QMLBN3igwFMMODcAyz8U2Ap0ACQqok.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7H/7Hh93d3G281lD_G4MM-K7YL0RtvfF3osZ3tK86p8Psk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7Z/7Z60_jhGYjjOBTk3r8Aa2ZV4DwTHuXc4JsqT13bCljc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8W/8W7Id0h5U77_eVkkCY4ROJBUKABLRHsr5yo_vzBNoA4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/92/92DncEpOSowpziX2RSXmGIKXaJo7h2rr9Hh6wyVOsRM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AO/AOY_58Ai8y4zMJ13jdYBdoBNJHwlX4gtzflhfP2nl6k.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/C-/C-dw0M8QOQN8DjROlM-aUteggu3d6KaQD-rBmHAQ4dU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/CM/CMeCT2T7Nd7PUPEtbK1YCarmzltllbcbsHI892df9Uo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Da/DahTrnxxMFavj3bHuCvhl03IXIb5XRXdj6PLUtMwVoI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Do/Do83AoOat5W-c1g7piDGy2GMmffsY6JY0Qfuh5PY3GM.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dw/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/EA/EAMGb3LcvsJYsKCvU0FH3cFXQBqTmDHdm68CRcGGkxs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/HZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Hu/HuxqAoY_FoJq94YbRhmLRcXiA6K7xPXT3ViyV8vtr38.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/LI/LIOeD2c3MYj4K4LebnGYcpb1F-G7eHCqyVcF3fLmivk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Lw/Lw7tUkUABT5dQ0eElpmhiEbK8h6ChHhEEb3iIP_q6As.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/My/Myq6rgVMKFWObJUsyisfudlI1fWDVaFHdJtx_YNWgkE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/O6/O6PjkGTcXaO89C6AbuadQ3tNJM7JAUPl22JkjSlGYT0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OC/OCgWDw6AmW2ndZhYQJCovAT3MrQ1FUcjKcIVnicQFWs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OI/OIcpSS_toFEgHpKqLUFT_EO_KEIHJ2ti8VepxMz0ROk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ok/OkjwT_Bg1Ete5QvfmAGVm-YuMHrlbTH5VOI8aDtyDbg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/P2/P2eaoG_3TI887exxv_G88ZYFhwOs5UOqKB7If9FLtHE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/PF/PFD-K2z1IpxItwCxGEIxoq56ay6rKDrBA1wUNEYxOOc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pb/Pb2Wc_FYaxn6JgXTJbW_unn8UhGBuRirp7PEBynJFyA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pw/PwV1n0VInOtXSi2kWiNdBHG44NAKqGfQx4OijtmIk5I.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Q1/Q1XF7k1XjotY1C9SUWw3RaOuqBTZ3AygKU0FsKSGe8U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T6/T6J4CcKu5C6mgeOQxg5nNc-lRwowH_UgZWmD_GWtKTE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/US/USEnPg2AGtX0pVqQNI_iGrLtB9t-r253_6DzFzhoY9Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/V2/V20OShSf4KQuR_tjMKpClFMr_EWUbxFeXbOhvvz9QM4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/V8/V8ZewWLrocSiIOMQMOeIrIXDgvktN939nWcA_wnBszs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VQ/VQD_HVLaDTBoPGbAKzzV-_A-w_pjFujFXcYW1T5yVJ4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Vk/Vk0wJE8hvbtGSNnzIW3-Evd7_M-Bc7emek0GFZQPapI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/WG/WG5dYP-ckKzAMi5OcUWS50k31lbRPXJ-ipfPbVB_xlY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/YS/YSAUVr5d_wbRSzz2BleSmYfkMZPYTbL3ftCUchYei3I.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ye/Ye_ONiDRDCf5YZOULWxLUfsr-IjJryfMOA6FoDugNJA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/aS/aSw2fAfFJBikdJOTGE7_86zOLdFTCWV_lkKX3TwOkb8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bD/bDtRIDP0s9tKUSyIAH31D5jroSMXZV0K7TynjIx3-8o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bn/bnXRQyRSltQCM8FUXL8lpo4y5YaBLea1PIvciJFDf9Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/br/bruJcqITayQQfuI_0x5dUW7M9DzJdRPNh8Igf0jpniY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/cj/cjnpc-ByYZiJFv2-sjRS1AxvpxtM3S6sE2VB7NxZe80.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/cu/cuFUNLq4kuBeMs4w5fUvIkk-MFPMl2OnmsssjJMyPK8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/e7/e7BUqMzL_1E7BBnoV_nbJLoQu_SGqKtKJWOsQsZQUjU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fa/faTijp_rKjBEvLHMOJ2DtpixNdcS8LpJgk_kSFfXa7I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hi/HIwfqm8aLEFNNe1kRosjv97hgxdWZtZR4SUmIwPD_L4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hr/hr3vgmohlHUPBxg_1SkwssAeKMG4IeMmyHmsdaGxJXo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hx/hxaDKsXJi-m5nKlmbR1hk4a4Xg2YfFwmrW_TtmS7jlE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/i6/i6MnwGOTb-6wI1QoaMbUG6_si7ex6qJIq-6BD8a0atQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jf/jfyB4_hKx91oYrg3Uz8kejw-1HKvL3WNzfXHySfnrjg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jr/jrhg63vKri996YfYxadgGPKa0s0Z0QeRBvv78nSjZd8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/k2/k230zg3KWZuQ9up5IruYh082tu4CAmgAheZJN-w5_pE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/k9/k9czmo4FEiAIwA9VBgJzkuaEIzFHi4ncQa6QcilA4Hs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/l2/l2kRUfGOavyI9m_fh5Po6aCsWqcXA-N1alZsislQsyQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lo/lop19Wm1uQZfGd6HfEAEdB1zDu5eWXraq_C7CfdepFI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m7/M74bdzSYi7Dt522cDdBL3cfCik79h5YPNJfBk5Y_KMs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m7/m7zZtDfOpfg4A2T8djXPwZ9bzt8QYGlaD7_1BmZ_XYI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oU/oUcXXxKagL4rpV2nZ9mguSwRZuRJ4amZlMbYJjZ0MNA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pr/prQPg8mGVONBTk9Fg0dBPPW0jFaWR2sduO876XIDzwI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ps/psBBNOAKRh8YioHXsWx2sTo_Nhf1SB1nRF73bYh6szg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pv/pv6tV3CDkIAmLXdU8EPLlNEkXAKJPufVD4VP30o4fWo.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/py/pyGAJrY1mgvF3JKeIGd7oSFKe34ZIyP04fOnInQI9Pc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/qh/qhcFpLxR_Q-MR3fQHOsfLnsd999iPY3-MULVjw5IyTo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/r9/r9EqVDhnX2xtdKYUJJ9TnrUnvcnVpFqzDp0_X9mRZAs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rV/rVIqk5blVIvnPB5_UOcU5Kb2jaOoDLVJJP-3cTJ-O58.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rf/rfLkA5p4BXXJJ74YR8FbQbDV4Bb0WHxNwzsgAp1OLTs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sD/sDAsuJtgLiV-QkQe-cSdXfiUOjOOa0Y26yKETGY4I5Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uf/ufhKc2bX_OCnWPA1CIAmeHU8VxWbdA5qUlSdEScnkeY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uh/uhyjgIntx0ROlUReN-lOokLm-C_h3Qc0Tb55Ng5SNuM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wN/WnG-tLWvfYaiK9GlHONheAINtcktwQW3RGqbY7XjaJk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wX/wXqpuaP5B32TnHsCqCG8T8yFYTeC12ot6B3CZXVwZs4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xY/xYwuUZks6Apchm69F0RMY1VhCiOkTc0vnd0gdEdujIA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xz/xzt9-xebMB-HhzrGOZ-ybRzxoje_BYreHI6qS4ZdqXk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yX/yX4FWx00r4Ktdk56ieu0rpZC0oTTAJM5a8D7o9m4Gb4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/z9/z9sop_5Fsj3dppixvAQ6tts4MmhlyxvWiGi_YXnOvxc.cache +0 -0
- metadata +191 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc6ee6a544dc261f821042b455b11199055fe6a364300a2f30f07f6072e1f71a
|
4
|
+
data.tar.gz: 624b5aefef654f3b700d44ff6b8e94f8f055aecc8ae087a03395fe1d185b5251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b3408fe0bb1e22ed99ba0e8a7861385d4785d8801ea81b97baeacbe60d0eca336f8a364f16b44cd1c0ee4cbf721ee22b79df7f1d84ad17aa2e1cf90e6b7c66a
|
7
|
+
data.tar.gz: a9fc7b525dc802eaf9a40ee770633680a2e47689f2a12c70fbc08e4d33aa301e6c6435a868dfb99d56dcf7f935550cfa8ec71ca6dde9f10272ed5b276431da79
|
data/test/dummy/log/test.log
CHANGED
@@ -11301,3 +11301,3684 @@ EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
|
11301
11301
|
ReplicantTest: test_joined_date_is_same_as_dob
|
11302
11302
|
----------------------------------------------
|
11303
11303
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11304
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
11305
|
+
[1m[35m (6.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
11306
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
11307
|
+
-------------------------------------------------------------------------------------------------------
|
11308
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
11309
|
+
-------------------------------------------------------------------------------------------------------
|
11310
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11311
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11312
|
+
------------------------------------------------------------------
|
11313
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
11314
|
+
------------------------------------------------------------------
|
11315
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11316
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11317
|
+
----------------------------------------------------------------------
|
11318
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
11319
|
+
----------------------------------------------------------------------
|
11320
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11321
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11322
|
+
---------------------------------------------------------------------------------------
|
11323
|
+
GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified
|
11324
|
+
---------------------------------------------------------------------------------------
|
11325
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11326
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11327
|
+
------------------------------------------------------------------------------------------------------
|
11328
|
+
GovUkDateFieldsTest: test_fieldset_without_explicit_`id`_passed_in_the_options_(will_be_autogenerated)
|
11329
|
+
------------------------------------------------------------------------------------------------------
|
11330
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11331
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11332
|
+
--------------------------------------------------------
|
11333
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
11334
|
+
--------------------------------------------------------
|
11335
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11336
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11337
|
+
-----------------------------------------------------------
|
11338
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
11339
|
+
-----------------------------------------------------------
|
11340
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11341
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11342
|
+
-------------------------------------------------------
|
11343
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
11344
|
+
-------------------------------------------------------
|
11345
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11346
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11347
|
+
-------------------------------------
|
11348
|
+
GovUkDateFieldsTest: test_squash_html
|
11349
|
+
-------------------------------------
|
11350
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11351
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11352
|
+
-------------------------------------------------------------------------------
|
11353
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
11354
|
+
-------------------------------------------------------------------------------
|
11355
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11356
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11357
|
+
-------------------------------------------------------------
|
11358
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
11359
|
+
-------------------------------------------------------------
|
11360
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11361
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11362
|
+
---------------------------------------------------------------
|
11363
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
11364
|
+
---------------------------------------------------------------
|
11365
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11366
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11367
|
+
----------------------------------------------------------------------------------------
|
11368
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message,_with_autogenerated_`id`
|
11369
|
+
----------------------------------------------------------------------------------------
|
11370
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11371
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11372
|
+
----------------------------------------------------------------------------------
|
11373
|
+
GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied
|
11374
|
+
----------------------------------------------------------------------------------
|
11375
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11376
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11377
|
+
---------------------------------------------------------------
|
11378
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
11379
|
+
---------------------------------------------------------------
|
11380
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11381
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11382
|
+
------------------------------------------
|
11383
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
11384
|
+
------------------------------------------
|
11385
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11386
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11387
|
+
----------------------------------------------
|
11388
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
11389
|
+
----------------------------------------------
|
11390
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11391
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11392
|
+
----------------------------------------------------------------------
|
11393
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
11394
|
+
----------------------------------------------------------------------
|
11395
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11396
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11397
|
+
--------------------------------------------------------------------------
|
11398
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
11399
|
+
--------------------------------------------------------------------------
|
11400
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11401
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11402
|
+
--------------------------------------------------------------------------------
|
11403
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
11404
|
+
--------------------------------------------------------------------------------
|
11405
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11406
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11407
|
+
------------------------------------------------------------------------------------------------
|
11408
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
11409
|
+
------------------------------------------------------------------------------------------------
|
11410
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11411
|
+
[1m[36mDirector Create (1.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-14 21:49:41.168495"], ["updated_at", "2021-06-14 21:49:41.168495"]]
|
11412
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11413
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11414
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11415
|
+
-----------------------------------------------------------------------
|
11416
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
11417
|
+
-----------------------------------------------------------------------
|
11418
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11419
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11420
|
+
-----------------------------------------------------------------
|
11421
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
11422
|
+
-----------------------------------------------------------------
|
11423
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11424
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11425
|
+
-----------------------------------------------------------------------
|
11426
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
11427
|
+
-----------------------------------------------------------------------
|
11428
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11429
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11430
|
+
---------------------------------------------------------------------
|
11431
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
11432
|
+
---------------------------------------------------------------------
|
11433
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11434
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11435
|
+
-----------------------------------------------------------------------------------------------
|
11436
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
11437
|
+
-----------------------------------------------------------------------------------------------
|
11438
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11439
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11440
|
+
--------------------------------------------------------------------------
|
11441
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
11442
|
+
--------------------------------------------------------------------------
|
11443
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11444
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11445
|
+
-----------------------------------------------------------------------------------------------
|
11446
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
11447
|
+
-----------------------------------------------------------------------------------------------
|
11448
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11449
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11450
|
+
---------------------------------------------------------------------------------
|
11451
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
11452
|
+
---------------------------------------------------------------------------------
|
11453
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11454
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11455
|
+
---------------------------------------------------------------------------------
|
11456
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
11457
|
+
---------------------------------------------------------------------------------
|
11458
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11459
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11460
|
+
-------------------------------------------------------------------------------
|
11461
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
11462
|
+
-------------------------------------------------------------------------------
|
11463
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11464
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11465
|
+
------------------------------------------------------------------------------------------
|
11466
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
11467
|
+
------------------------------------------------------------------------------------------
|
11468
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11469
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11470
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
11471
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
11472
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
11473
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11474
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11475
|
+
-----------------------------------------------------------------------------------------
|
11476
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
11477
|
+
-----------------------------------------------------------------------------------------
|
11478
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11479
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11480
|
+
---------------------------------------------------------------------
|
11481
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
11482
|
+
---------------------------------------------------------------------
|
11483
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11484
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11485
|
+
--------------------------------------------------------------------------------------------------
|
11486
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
11487
|
+
--------------------------------------------------------------------------------------------------
|
11488
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11489
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11490
|
+
-------------------------------------------------------------------------
|
11491
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
11492
|
+
-------------------------------------------------------------------------
|
11493
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11494
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11495
|
+
-----------------------------------------------------------------------
|
11496
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
11497
|
+
-----------------------------------------------------------------------
|
11498
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11499
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11500
|
+
-------------------------------------------
|
11501
|
+
EmployeeTest: test_invalid_day_raises_error
|
11502
|
+
-------------------------------------------
|
11503
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11504
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11505
|
+
----------------------------------------------
|
11506
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
11507
|
+
----------------------------------------------
|
11508
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11509
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11510
|
+
------------------------------------------------------------------------
|
11511
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
11512
|
+
------------------------------------------------------------------------
|
11513
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11514
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11515
|
+
----------------------------------------------------------------------------------------------------------------
|
11516
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
11517
|
+
----------------------------------------------------------------------------------------------------------------
|
11518
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11519
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11520
|
+
-----------------------------------------------------------------------------------
|
11521
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
11522
|
+
-----------------------------------------------------------------------------------
|
11523
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11524
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11525
|
+
----------------------------------------------------------------------------------------------
|
11526
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
11527
|
+
----------------------------------------------------------------------------------------------
|
11528
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11529
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11530
|
+
---------------------------------------------------------------------
|
11531
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
11532
|
+
---------------------------------------------------------------------
|
11533
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11534
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11535
|
+
-----------------------------------------------------------------
|
11536
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
11537
|
+
-----------------------------------------------------------------
|
11538
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11539
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11540
|
+
-------------------------------------------------------------------------------------------------------------------
|
11541
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
11542
|
+
-------------------------------------------------------------------------------------------------------------------
|
11543
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11544
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11545
|
+
---------------------------------------------------------------------------------------------------------
|
11546
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
11547
|
+
---------------------------------------------------------------------------------------------------------
|
11548
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11549
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11550
|
+
-------------------------------------------------------------------------
|
11551
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
11552
|
+
-------------------------------------------------------------------------
|
11553
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11554
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-14 21:49:41.202446"], ["updated_at", "2021-06-14 21:49:41.202446"]]
|
11555
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11556
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11557
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11558
|
+
--------------------------------------------
|
11559
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
11560
|
+
--------------------------------------------
|
11561
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11562
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11563
|
+
-----------------------------------------------------------
|
11564
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
11565
|
+
-----------------------------------------------------------
|
11566
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11567
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11568
|
+
---------------------------------------------------------------------
|
11569
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
11570
|
+
---------------------------------------------------------------------
|
11571
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11572
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-14 21:49:41.206257"], ["updated_at", "2021-06-14 21:49:41.206257"]]
|
11573
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11574
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11575
|
+
[1m[36mEmployee Update (0.3ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-14 21:49:41.207239"], ["id", 23]]
|
11576
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11577
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11578
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11579
|
+
-----------------------------------------------------------
|
11580
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
11581
|
+
-----------------------------------------------------------
|
11582
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11583
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11584
|
+
------------------------------------------------------------------------------------------
|
11585
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
11586
|
+
------------------------------------------------------------------------------------------
|
11587
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11588
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11589
|
+
--------------------------------------------------------------------------
|
11590
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
11591
|
+
--------------------------------------------------------------------------
|
11592
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11593
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11594
|
+
--------------------------------------------------------------
|
11595
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
11596
|
+
--------------------------------------------------------------
|
11597
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11598
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.257362"], ["updated_at", "2021-06-14 21:49:41.257362"]]
|
11599
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11600
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11601
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.258911"], ["updated_at", "2021-06-14 21:49:41.258911"]]
|
11602
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11603
|
+
Processing by EmployeesController#edit as HTML
|
11604
|
+
Parameters: {"id"=>"24"}
|
11605
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 24], ["LIMIT", 1]]
|
11606
|
+
Rendering employees/edit.html.erb within layouts/application
|
11607
|
+
Rendered employees/_form.html.erb (Duration: 2.7ms | Allocations: 2220)
|
11608
|
+
Rendered employees/edit.html.erb within layouts/application (Duration: 3.9ms | Allocations: 2825)
|
11609
|
+
Completed 200 OK in 17ms (Views: 12.3ms | ActiveRecord: 0.3ms | Allocations: 10795)
|
11610
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11611
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11612
|
+
----------------------------------------------------
|
11613
|
+
EmployeesControllerTest: test_should_update_employee
|
11614
|
+
----------------------------------------------------
|
11615
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11616
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.291256"], ["updated_at", "2021-06-14 21:49:41.291256"]]
|
11617
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11618
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11619
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.292759"], ["updated_at", "2021-06-14 21:49:41.292759"]]
|
11620
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11621
|
+
Processing by EmployeesController#update as HTML
|
11622
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"26"}
|
11623
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 26], ["LIMIT", 1]]
|
11624
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11625
|
+
[1m[36mEmployee Update (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-14 21:49:41.300889"], ["id", 26]]
|
11626
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11627
|
+
Redirected to http://test.host/employees/26
|
11628
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.8ms | Allocations: 1106)
|
11629
|
+
[1m[36mEmployee Load (0.5ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 26], ["LIMIT", 1]]
|
11630
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11631
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11632
|
+
--------------------------------------------------
|
11633
|
+
EmployeesControllerTest: test_should_show_employee
|
11634
|
+
--------------------------------------------------
|
11635
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11636
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.305363"], ["updated_at", "2021-06-14 21:49:41.305363"]]
|
11637
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11638
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11639
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.306387"], ["updated_at", "2021-06-14 21:49:41.306387"]]
|
11640
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11641
|
+
Processing by EmployeesController#show as HTML
|
11642
|
+
Parameters: {"id"=>"28"}
|
11643
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 28], ["LIMIT", 1]]
|
11644
|
+
Rendering employees/show.html.erb within layouts/application
|
11645
|
+
Rendered employees/show.html.erb within layouts/application (Duration: 0.5ms | Allocations: 266)
|
11646
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms | Allocations: 1823)
|
11647
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11648
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11649
|
+
---------------------------------------------
|
11650
|
+
EmployeesControllerTest: test_should_get_edit
|
11651
|
+
---------------------------------------------
|
11652
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11653
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.311311"], ["updated_at", "2021-06-14 21:49:41.311311"]]
|
11654
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11655
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11656
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.313252"], ["updated_at", "2021-06-14 21:49:41.313252"]]
|
11657
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11658
|
+
Processing by EmployeesController#edit as HTML
|
11659
|
+
Parameters: {"id"=>"30"}
|
11660
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 30], ["LIMIT", 1]]
|
11661
|
+
Rendering employees/edit.html.erb within layouts/application
|
11662
|
+
Rendered employees/_form.html.erb (Duration: 3.9ms | Allocations: 1311)
|
11663
|
+
Rendered employees/edit.html.erb within layouts/application (Duration: 4.4ms | Allocations: 1417)
|
11664
|
+
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms | Allocations: 2837)
|
11665
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11666
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11667
|
+
----------------------------------------------------
|
11668
|
+
EmployeesControllerTest: test_should_create_employee
|
11669
|
+
----------------------------------------------------
|
11670
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11671
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.325029"], ["updated_at", "2021-06-14 21:49:41.325029"]]
|
11672
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11673
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11674
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.326908"], ["updated_at", "2021-06-14 21:49:41.326908"]]
|
11675
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11676
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11677
|
+
Processing by EmployeesController#create as HTML
|
11678
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
11679
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11680
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-14 21:49:41.332448"], ["updated_at", "2021-06-14 21:49:41.332448"]]
|
11681
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11682
|
+
Redirected to http://test.host/employees/34
|
11683
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms | Allocations: 899)
|
11684
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11685
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11686
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
11687
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11688
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11689
|
+
----------------------------------------------
|
11690
|
+
EmployeesControllerTest: test_should_get_index
|
11691
|
+
----------------------------------------------
|
11692
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11693
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.342362"], ["updated_at", "2021-06-14 21:49:41.342362"]]
|
11694
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11695
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11696
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.344305"], ["updated_at", "2021-06-14 21:49:41.344305"]]
|
11697
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11698
|
+
Processing by EmployeesController#index as HTML
|
11699
|
+
Rendering employees/index.html.erb within layouts/application
|
11700
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
11701
|
+
Rendered employees/index.html.erb within layouts/application (Duration: 2.9ms | Allocations: 748)
|
11702
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms | Allocations: 2160)
|
11703
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11704
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11705
|
+
-----------------------------------------------------
|
11706
|
+
EmployeesControllerTest: test_should_destroy_employee
|
11707
|
+
-----------------------------------------------------
|
11708
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11709
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.355169"], ["updated_at", "2021-06-14 21:49:41.355169"]]
|
11710
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11711
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11712
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.356324"], ["updated_at", "2021-06-14 21:49:41.356324"]]
|
11713
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11714
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11715
|
+
Processing by EmployeesController#destroy as HTML
|
11716
|
+
Parameters: {"id"=>"37"}
|
11717
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 37], ["LIMIT", 1]]
|
11718
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11719
|
+
[1m[36mEmployee Destroy (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 37]]
|
11720
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11721
|
+
Redirected to http://test.host/employees
|
11722
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms | Allocations: 479)
|
11723
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11724
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11725
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11726
|
+
--------------------------------------------
|
11727
|
+
EmployeesControllerTest: test_should_get_new
|
11728
|
+
--------------------------------------------
|
11729
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11730
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-14 21:49:41.365483"], ["updated_at", "2021-06-14 21:49:41.365483"]]
|
11731
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11732
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11733
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-14 21:49:41.366440"], ["updated_at", "2021-06-14 21:49:41.366440"]]
|
11734
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11735
|
+
Processing by EmployeesController#new as HTML
|
11736
|
+
Rendering employees/new.html.erb within layouts/application
|
11737
|
+
Rendered employees/_form.html.erb (Duration: 3.1ms | Allocations: 1292)
|
11738
|
+
Rendered employees/new.html.erb within layouts/application (Duration: 4.3ms | Allocations: 1484)
|
11739
|
+
Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms | Allocations: 2925)
|
11740
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11741
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11742
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
11743
|
+
-----------------------------------------------------------------
|
11744
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
11745
|
+
-----------------------------------------------------------------
|
11746
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
11747
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11748
|
+
--------------------------------------------
|
11749
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
11750
|
+
--------------------------------------------
|
11751
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11752
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11753
|
+
-------------------------------------------
|
11754
|
+
EmployeeTest: test_invalid_day_raises_error
|
11755
|
+
-------------------------------------------
|
11756
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11757
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11758
|
+
--------------------------------------------------------------------------
|
11759
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
11760
|
+
--------------------------------------------------------------------------
|
11761
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
11762
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11763
|
+
---------------------------------------------------------------------
|
11764
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
11765
|
+
---------------------------------------------------------------------
|
11766
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11767
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:32:45.483339"], ["updated_at", "2021-06-15 07:32:45.483339"]]
|
11768
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11769
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11770
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-15 07:32:45.487727"], ["id", 41]]
|
11771
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11772
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11773
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11774
|
+
-------------------------------------------------------------------------
|
11775
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
11776
|
+
-------------------------------------------------------------------------
|
11777
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11778
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:32:45.491539"], ["updated_at", "2021-06-15 07:32:45.491539"]]
|
11779
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11780
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11781
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
11782
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11783
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11784
|
+
---------------------------------------------------------------------------------------------------------
|
11785
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
11786
|
+
---------------------------------------------------------------------------------------------------------
|
11787
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11788
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11789
|
+
----------------------------------------------------------------------------------------------------------------
|
11790
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
11791
|
+
----------------------------------------------------------------------------------------------------------------
|
11792
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11793
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11794
|
+
----------------------------------------------
|
11795
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
11796
|
+
----------------------------------------------
|
11797
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11798
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11799
|
+
-------------------------------------------------------------------------------------------------------------------
|
11800
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
11801
|
+
-------------------------------------------------------------------------------------------------------------------
|
11802
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11803
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11804
|
+
---------------------------------------------------------------------
|
11805
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
11806
|
+
---------------------------------------------------------------------
|
11807
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11808
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11809
|
+
----------------------------------------------------------------------------------------------
|
11810
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
11811
|
+
----------------------------------------------------------------------------------------------
|
11812
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11813
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11814
|
+
------------------------------------------------------------------------
|
11815
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
11816
|
+
------------------------------------------------------------------------
|
11817
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11818
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11819
|
+
-----------------------------------------------------------------------
|
11820
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
11821
|
+
-----------------------------------------------------------------------
|
11822
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11823
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11824
|
+
-----------------------------------------------------------------------------------
|
11825
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
11826
|
+
-----------------------------------------------------------------------------------
|
11827
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11828
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11829
|
+
-----------------------------------------------------------
|
11830
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
11831
|
+
-----------------------------------------------------------
|
11832
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11833
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11834
|
+
-----------------------------------------------------------
|
11835
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
11836
|
+
-----------------------------------------------------------
|
11837
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11838
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11839
|
+
------------------------------------------------------------------------------------------
|
11840
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
11841
|
+
------------------------------------------------------------------------------------------
|
11842
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11843
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11844
|
+
--------------------------------------------
|
11845
|
+
EmployeesControllerTest: test_should_get_new
|
11846
|
+
--------------------------------------------
|
11847
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11848
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.515698"], ["updated_at", "2021-06-15 07:32:45.515698"]]
|
11849
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11850
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11851
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.517959"], ["updated_at", "2021-06-15 07:32:45.517959"]]
|
11852
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11853
|
+
Processing by EmployeesController#new as HTML
|
11854
|
+
Rendering employees/new.html.erb within layouts/application
|
11855
|
+
Rendered employees/_form.html.erb (13.0ms)
|
11856
|
+
Rendered employees/new.html.erb within layouts/application (15.0ms)
|
11857
|
+
Completed 200 OK in 149ms (Views: 147.7ms | ActiveRecord: 0.0ms)
|
11858
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11859
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
11860
|
+
----------------------------------------------------
|
11861
|
+
EmployeesControllerTest: test_should_update_employee
|
11862
|
+
----------------------------------------------------
|
11863
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11864
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.672454"], ["updated_at", "2021-06-15 07:32:45.672454"]]
|
11865
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11866
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11867
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.673820"], ["updated_at", "2021-06-15 07:32:45.673820"]]
|
11868
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11869
|
+
Processing by EmployeesController#update as HTML
|
11870
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"45"}
|
11871
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 45], ["LIMIT", 1]]
|
11872
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11873
|
+
[1m[35mSQL (1.8ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-15 07:32:45.685421"], ["id", 45]]
|
11874
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11875
|
+
Redirected to http://test.host/employees/45
|
11876
|
+
Completed 302 Found in 8ms (ActiveRecord: 2.6ms)
|
11877
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 45], ["LIMIT", 1]]
|
11878
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11879
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11880
|
+
----------------------------------------------
|
11881
|
+
EmployeesControllerTest: test_should_get_index
|
11882
|
+
----------------------------------------------
|
11883
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11884
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.692158"], ["updated_at", "2021-06-15 07:32:45.692158"]]
|
11885
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11886
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11887
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.694111"], ["updated_at", "2021-06-15 07:32:45.694111"]]
|
11888
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11889
|
+
Processing by EmployeesController#index as HTML
|
11890
|
+
Rendering employees/index.html.erb within layouts/application
|
11891
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
11892
|
+
Rendered employees/index.html.erb within layouts/application (1.3ms)
|
11893
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
11894
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11895
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11896
|
+
---------------------------------------------
|
11897
|
+
EmployeesControllerTest: test_should_get_edit
|
11898
|
+
---------------------------------------------
|
11899
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11900
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.700130"], ["updated_at", "2021-06-15 07:32:45.700130"]]
|
11901
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11902
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11903
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.701175"], ["updated_at", "2021-06-15 07:32:45.701175"]]
|
11904
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11905
|
+
Processing by EmployeesController#edit as HTML
|
11906
|
+
Parameters: {"id"=>"49"}
|
11907
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 49], ["LIMIT", 1]]
|
11908
|
+
Rendering employees/edit.html.erb within layouts/application
|
11909
|
+
Rendered employees/_form.html.erb (1.8ms)
|
11910
|
+
Rendered employees/edit.html.erb within layouts/application (2.3ms)
|
11911
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)
|
11912
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11913
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11914
|
+
-----------------------------------------------------
|
11915
|
+
EmployeesControllerTest: test_should_destroy_employee
|
11916
|
+
-----------------------------------------------------
|
11917
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11918
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.707830"], ["updated_at", "2021-06-15 07:32:45.707830"]]
|
11919
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11920
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11921
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.709079"], ["updated_at", "2021-06-15 07:32:45.709079"]]
|
11922
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11923
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11924
|
+
Processing by EmployeesController#destroy as HTML
|
11925
|
+
Parameters: {"id"=>"51"}
|
11926
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 51], ["LIMIT", 1]]
|
11927
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11928
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 51]]
|
11929
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11930
|
+
Redirected to http://test.host/employees
|
11931
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
|
11932
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11933
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11934
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11935
|
+
----------------------------------------------------
|
11936
|
+
EmployeesControllerTest: test_should_create_employee
|
11937
|
+
----------------------------------------------------
|
11938
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11939
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.714890"], ["updated_at", "2021-06-15 07:32:45.714890"]]
|
11940
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11941
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11942
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.716203"], ["updated_at", "2021-06-15 07:32:45.716203"]]
|
11943
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11944
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11945
|
+
Processing by EmployeesController#create as HTML
|
11946
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
11947
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11948
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-15 07:32:45.719005"], ["updated_at", "2021-06-15 07:32:45.719005"]]
|
11949
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11950
|
+
Redirected to http://test.host/employees/55
|
11951
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
11952
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11953
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
11954
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
11955
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11956
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11957
|
+
--------------------------------------------------------------
|
11958
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
11959
|
+
--------------------------------------------------------------
|
11960
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11961
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.722809"], ["updated_at", "2021-06-15 07:32:45.722809"]]
|
11962
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11963
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11964
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.723900"], ["updated_at", "2021-06-15 07:32:45.723900"]]
|
11965
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11966
|
+
Processing by EmployeesController#edit as HTML
|
11967
|
+
Parameters: {"id"=>"56"}
|
11968
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 56], ["LIMIT", 1]]
|
11969
|
+
Rendering employees/edit.html.erb within layouts/application
|
11970
|
+
Rendered employees/_form.html.erb (2.1ms)
|
11971
|
+
Rendered employees/edit.html.erb within layouts/application (2.5ms)
|
11972
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
11973
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11974
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11975
|
+
--------------------------------------------------
|
11976
|
+
EmployeesControllerTest: test_should_show_employee
|
11977
|
+
--------------------------------------------------
|
11978
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11979
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:32:45.732136"], ["updated_at", "2021-06-15 07:32:45.732136"]]
|
11980
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11981
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11982
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:32:45.733344"], ["updated_at", "2021-06-15 07:32:45.733344"]]
|
11983
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11984
|
+
Processing by EmployeesController#show as HTML
|
11985
|
+
Parameters: {"id"=>"58"}
|
11986
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 58], ["LIMIT", 1]]
|
11987
|
+
Rendering employees/show.html.erb within layouts/application
|
11988
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
11989
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms)
|
11990
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11991
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11992
|
+
-------------------------------------------------------------------------------------------------------
|
11993
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
11994
|
+
-------------------------------------------------------------------------------------------------------
|
11995
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11996
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11997
|
+
----------------------------------------------------------------------
|
11998
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
11999
|
+
----------------------------------------------------------------------
|
12000
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12001
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12002
|
+
------------------------------------------------------------------
|
12003
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
12004
|
+
------------------------------------------------------------------
|
12005
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12006
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12007
|
+
--------------------------------------------------------------------------
|
12008
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
12009
|
+
--------------------------------------------------------------------------
|
12010
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12011
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12012
|
+
---------------------------------------------------------------------
|
12013
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
12014
|
+
---------------------------------------------------------------------
|
12015
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12016
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12017
|
+
-----------------------------------------------------------------------------------------------
|
12018
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
12019
|
+
-----------------------------------------------------------------------------------------------
|
12020
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12021
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12022
|
+
-----------------------------------------------------------------------
|
12023
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
12024
|
+
-----------------------------------------------------------------------
|
12025
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12026
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12027
|
+
-----------------------------------------------------------------
|
12028
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
12029
|
+
-----------------------------------------------------------------
|
12030
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12031
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12032
|
+
------------------------------------------------------------------------------------------------
|
12033
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
12034
|
+
------------------------------------------------------------------------------------------------
|
12035
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12036
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:32:45.755104"], ["updated_at", "2021-06-15 07:32:45.755104"]]
|
12037
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12038
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12039
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12040
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12041
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12042
|
+
-----------------------------------------------------------------------
|
12043
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
12044
|
+
-----------------------------------------------------------------------
|
12045
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12046
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12047
|
+
----------------------------------------------------------------
|
12048
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
12049
|
+
----------------------------------------------------------------
|
12050
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12051
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12052
|
+
-------------------------------------------
|
12053
|
+
GovUkDateFieldsTest: test_date_fields_error
|
12054
|
+
-------------------------------------------
|
12055
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12056
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12057
|
+
----------------------------------------------
|
12058
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
12059
|
+
----------------------------------------------
|
12060
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12061
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12062
|
+
------------------------------------------------
|
12063
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
12064
|
+
------------------------------------------------
|
12065
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12066
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12067
|
+
--------------------------------------------------------------------------------------------------
|
12068
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
12069
|
+
--------------------------------------------------------------------------------------------------
|
12070
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12071
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12072
|
+
---------------------------------------------------------------------
|
12073
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
12074
|
+
---------------------------------------------------------------------
|
12075
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12076
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12077
|
+
-------------------------------------------------------------------------
|
12078
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12079
|
+
-------------------------------------------------------------------------
|
12080
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12081
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12082
|
+
---------------------------------------------------------------------------------
|
12083
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
12084
|
+
---------------------------------------------------------------------------------
|
12085
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12086
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12087
|
+
-----------------------------------------------------------------------------------------
|
12088
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
12089
|
+
-----------------------------------------------------------------------------------------
|
12090
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12091
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12092
|
+
------------------------------------------------------------------------------------------
|
12093
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
12094
|
+
------------------------------------------------------------------------------------------
|
12095
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12096
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12097
|
+
-----------------------------------------------------------------------------------------------
|
12098
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
12099
|
+
-----------------------------------------------------------------------------------------------
|
12100
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12101
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12102
|
+
---------------------------------------------------------------------------------
|
12103
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
12104
|
+
---------------------------------------------------------------------------------
|
12105
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12106
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12107
|
+
-------------------------------------------------------------------------------
|
12108
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
12109
|
+
-------------------------------------------------------------------------------
|
12110
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12111
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12112
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
12113
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
12114
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
12115
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12116
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12117
|
+
----------------------------------------------
|
12118
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
12119
|
+
----------------------------------------------
|
12120
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12121
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12122
|
+
--------------------------------------------------------------------------------
|
12123
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
12124
|
+
--------------------------------------------------------------------------------
|
12125
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12126
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12127
|
+
--------------------------------------------------------------------------
|
12128
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12129
|
+
--------------------------------------------------------------------------
|
12130
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12131
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12132
|
+
----------------------------------------------------------------------
|
12133
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
12134
|
+
----------------------------------------------------------------------
|
12135
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12136
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12137
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12138
|
+
-------------------------------------------------------------------------------------------------------
|
12139
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
12140
|
+
-------------------------------------------------------------------------------------------------------
|
12141
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12142
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12143
|
+
------------------------------------------------------------------
|
12144
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
12145
|
+
------------------------------------------------------------------
|
12146
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12147
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12148
|
+
----------------------------------------------------------------------
|
12149
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12150
|
+
----------------------------------------------------------------------
|
12151
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12152
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12153
|
+
------------------------------------------------------------------------------------------
|
12154
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
12155
|
+
------------------------------------------------------------------------------------------
|
12156
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12157
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12158
|
+
-------------------------------------------------------------------------------
|
12159
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
12160
|
+
-------------------------------------------------------------------------------
|
12161
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12162
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12163
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
12164
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
12165
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
12166
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12167
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12168
|
+
-----------------------------------------------------------------------------------------------
|
12169
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
12170
|
+
-----------------------------------------------------------------------------------------------
|
12171
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12172
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12173
|
+
---------------------------------------------------------------------------------
|
12174
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
12175
|
+
---------------------------------------------------------------------------------
|
12176
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12177
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12178
|
+
-----------------------------------------------------------------------------------------
|
12179
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
12180
|
+
-----------------------------------------------------------------------------------------
|
12181
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12182
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12183
|
+
---------------------------------------------------------------------------------
|
12184
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
12185
|
+
---------------------------------------------------------------------------------
|
12186
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12187
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12188
|
+
----------------------------------------------
|
12189
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
12190
|
+
----------------------------------------------
|
12191
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12192
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12193
|
+
-----------------------------------------------------
|
12194
|
+
EmployeesControllerTest: test_should_destroy_employee
|
12195
|
+
-----------------------------------------------------
|
12196
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12197
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.577959"], ["updated_at", "2021-06-15 07:36:45.577959"]]
|
12198
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12199
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12200
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.580138"], ["updated_at", "2021-06-15 07:36:45.580138"]]
|
12201
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12202
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12203
|
+
Processing by EmployeesController#destroy as HTML
|
12204
|
+
Parameters: {"id"=>"61"}
|
12205
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 61], ["LIMIT", 1]]
|
12206
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12207
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 61]]
|
12208
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12209
|
+
Redirected to http://test.host/employees
|
12210
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
|
12211
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12212
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12213
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12214
|
+
--------------------------------------------------------------
|
12215
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
12216
|
+
--------------------------------------------------------------
|
12217
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12218
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.596824"], ["updated_at", "2021-06-15 07:36:45.596824"]]
|
12219
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12220
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12221
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.598314"], ["updated_at", "2021-06-15 07:36:45.598314"]]
|
12222
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12223
|
+
Processing by EmployeesController#edit as HTML
|
12224
|
+
Parameters: {"id"=>"63"}
|
12225
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 63], ["LIMIT", 1]]
|
12226
|
+
Rendering employees/edit.html.erb within layouts/application
|
12227
|
+
Rendered employees/_form.html.erb (16.4ms)
|
12228
|
+
Rendered employees/edit.html.erb within layouts/application (18.2ms)
|
12229
|
+
Completed 200 OK in 126ms (Views: 124.8ms | ActiveRecord: 0.2ms)
|
12230
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12231
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12232
|
+
----------------------------------------------------
|
12233
|
+
EmployeesControllerTest: test_should_create_employee
|
12234
|
+
----------------------------------------------------
|
12235
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12236
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.729315"], ["updated_at", "2021-06-15 07:36:45.729315"]]
|
12237
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12238
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12239
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.732373"], ["updated_at", "2021-06-15 07:36:45.732373"]]
|
12240
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12241
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12242
|
+
Processing by EmployeesController#create as HTML
|
12243
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
12244
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12245
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-15 07:36:45.739283"], ["updated_at", "2021-06-15 07:36:45.739283"]]
|
12246
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12247
|
+
Redirected to http://test.host/employees/67
|
12248
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
|
12249
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12250
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12251
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
12252
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12253
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12254
|
+
--------------------------------------------
|
12255
|
+
EmployeesControllerTest: test_should_get_new
|
12256
|
+
--------------------------------------------
|
12257
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12258
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.748802"], ["updated_at", "2021-06-15 07:36:45.748802"]]
|
12259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12260
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12261
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.751286"], ["updated_at", "2021-06-15 07:36:45.751286"]]
|
12262
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12263
|
+
Processing by EmployeesController#new as HTML
|
12264
|
+
Rendering employees/new.html.erb within layouts/application
|
12265
|
+
Rendered employees/_form.html.erb (7.4ms)
|
12266
|
+
Rendered employees/new.html.erb within layouts/application (7.9ms)
|
12267
|
+
Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms)
|
12268
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12269
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12270
|
+
----------------------------------------------------
|
12271
|
+
EmployeesControllerTest: test_should_update_employee
|
12272
|
+
----------------------------------------------------
|
12273
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12274
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.767931"], ["updated_at", "2021-06-15 07:36:45.767931"]]
|
12275
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12276
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12277
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.770071"], ["updated_at", "2021-06-15 07:36:45.770071"]]
|
12278
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12279
|
+
Processing by EmployeesController#update as HTML
|
12280
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"70"}
|
12281
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 70], ["LIMIT", 1]]
|
12282
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12283
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-15 07:36:45.780413"], ["id", 70]]
|
12284
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12285
|
+
Redirected to http://test.host/employees/70
|
12286
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
12287
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 70], ["LIMIT", 1]]
|
12288
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12289
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12290
|
+
---------------------------------------------
|
12291
|
+
EmployeesControllerTest: test_should_get_edit
|
12292
|
+
---------------------------------------------
|
12293
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12294
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.785141"], ["updated_at", "2021-06-15 07:36:45.785141"]]
|
12295
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12296
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12297
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.786659"], ["updated_at", "2021-06-15 07:36:45.786659"]]
|
12298
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12299
|
+
Processing by EmployeesController#edit as HTML
|
12300
|
+
Parameters: {"id"=>"72"}
|
12301
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 72], ["LIMIT", 1]]
|
12302
|
+
Rendering employees/edit.html.erb within layouts/application
|
12303
|
+
Rendered employees/_form.html.erb (3.3ms)
|
12304
|
+
Rendered employees/edit.html.erb within layouts/application (3.6ms)
|
12305
|
+
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.2ms)
|
12306
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12307
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12308
|
+
--------------------------------------------------
|
12309
|
+
EmployeesControllerTest: test_should_show_employee
|
12310
|
+
--------------------------------------------------
|
12311
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12312
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.796045"], ["updated_at", "2021-06-15 07:36:45.796045"]]
|
12313
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12314
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12315
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.797510"], ["updated_at", "2021-06-15 07:36:45.797510"]]
|
12316
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12317
|
+
Processing by EmployeesController#show as HTML
|
12318
|
+
Parameters: {"id"=>"74"}
|
12319
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 74], ["LIMIT", 1]]
|
12320
|
+
Rendering employees/show.html.erb within layouts/application
|
12321
|
+
Rendered employees/show.html.erb within layouts/application (0.9ms)
|
12322
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
12323
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12324
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12325
|
+
----------------------------------------------
|
12326
|
+
EmployeesControllerTest: test_should_get_index
|
12327
|
+
----------------------------------------------
|
12328
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12329
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:36:45.805480"], ["updated_at", "2021-06-15 07:36:45.805480"]]
|
12330
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12331
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12332
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:36:45.807097"], ["updated_at", "2021-06-15 07:36:45.807097"]]
|
12333
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12334
|
+
Processing by EmployeesController#index as HTML
|
12335
|
+
Rendering employees/index.html.erb within layouts/application
|
12336
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
12337
|
+
Rendered employees/index.html.erb within layouts/application (1.7ms)
|
12338
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
|
12339
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12340
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12341
|
+
-------------------------------------------
|
12342
|
+
GovUkDateFieldsTest: test_date_fields_error
|
12343
|
+
-------------------------------------------
|
12344
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
12345
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12346
|
+
----------------------------------------------
|
12347
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
12348
|
+
----------------------------------------------
|
12349
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12350
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12351
|
+
------------------------------------------------
|
12352
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
12353
|
+
------------------------------------------------
|
12354
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12355
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12356
|
+
----------------------------------------------------------------
|
12357
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
12358
|
+
----------------------------------------------------------------
|
12359
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12360
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12361
|
+
--------------------------------------------------------------------------------
|
12362
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
12363
|
+
--------------------------------------------------------------------------------
|
12364
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12365
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12366
|
+
--------------------------------------------------------------------------
|
12367
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12368
|
+
--------------------------------------------------------------------------
|
12369
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12370
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12371
|
+
----------------------------------------------------------------------
|
12372
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
12373
|
+
----------------------------------------------------------------------
|
12374
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12375
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12376
|
+
------------------------------------------------------------------------------------------
|
12377
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
12378
|
+
------------------------------------------------------------------------------------------
|
12379
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12380
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12381
|
+
-------------------------------------------
|
12382
|
+
EmployeeTest: test_invalid_day_raises_error
|
12383
|
+
-------------------------------------------
|
12384
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12385
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12386
|
+
---------------------------------------------------------------------
|
12387
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
12388
|
+
---------------------------------------------------------------------
|
12389
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12390
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12391
|
+
--------------------------------------------------------------------------
|
12392
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
12393
|
+
--------------------------------------------------------------------------
|
12394
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12395
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12396
|
+
-----------------------------------------------------------
|
12397
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
12398
|
+
-----------------------------------------------------------
|
12399
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12400
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12401
|
+
---------------------------------------------------------------------
|
12402
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
12403
|
+
---------------------------------------------------------------------
|
12404
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12405
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:36:45.853930"], ["updated_at", "2021-06-15 07:36:45.853930"]]
|
12406
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12407
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12408
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-15 07:36:45.855481"], ["id", 78]]
|
12409
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12410
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12411
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12412
|
+
--------------------------------------------
|
12413
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
12414
|
+
--------------------------------------------
|
12415
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12416
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12417
|
+
-----------------------------------------------------------------------
|
12418
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
12419
|
+
-----------------------------------------------------------------------
|
12420
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12421
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12422
|
+
-----------------------------------------------------------------
|
12423
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
12424
|
+
-----------------------------------------------------------------
|
12425
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12426
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12427
|
+
-------------------------------------------------------------------------
|
12428
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
12429
|
+
-------------------------------------------------------------------------
|
12430
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12431
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:36:45.859725"], ["updated_at", "2021-06-15 07:36:45.859725"]]
|
12432
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12433
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12434
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
12435
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12436
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12437
|
+
----------------------------------------------------------------------------------------------------------------
|
12438
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
12439
|
+
----------------------------------------------------------------------------------------------------------------
|
12440
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12441
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12442
|
+
----------------------------------------------
|
12443
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
12444
|
+
----------------------------------------------
|
12445
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12446
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12447
|
+
-----------------------------------------------------------------------------------
|
12448
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
12449
|
+
-----------------------------------------------------------------------------------
|
12450
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12451
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12452
|
+
----------------------------------------------------------------------------------------------
|
12453
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
12454
|
+
----------------------------------------------------------------------------------------------
|
12455
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12456
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12457
|
+
-----------------------------------------------------------
|
12458
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
12459
|
+
-----------------------------------------------------------
|
12460
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12461
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12462
|
+
------------------------------------------------------------------------
|
12463
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
12464
|
+
------------------------------------------------------------------------
|
12465
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12466
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12467
|
+
-------------------------------------------------------------------------------------------------------------------
|
12468
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
12469
|
+
-------------------------------------------------------------------------------------------------------------------
|
12470
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12471
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12472
|
+
---------------------------------------------------------------------------------------------------------
|
12473
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
12474
|
+
---------------------------------------------------------------------------------------------------------
|
12475
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12476
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12477
|
+
--------------------------------------------------------------------------
|
12478
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
12479
|
+
--------------------------------------------------------------------------
|
12480
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12481
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12482
|
+
------------------------------------------------------------------------------------------------
|
12483
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
12484
|
+
------------------------------------------------------------------------------------------------
|
12485
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12486
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:36:45.873884"], ["updated_at", "2021-06-15 07:36:45.873884"]]
|
12487
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12488
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12489
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12490
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12491
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12492
|
+
-----------------------------------------------------------------
|
12493
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
12494
|
+
-----------------------------------------------------------------
|
12495
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12496
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12497
|
+
-----------------------------------------------------------------------
|
12498
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
12499
|
+
-----------------------------------------------------------------------
|
12500
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12501
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12502
|
+
-----------------------------------------------------------------------------------------------
|
12503
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
12504
|
+
-----------------------------------------------------------------------------------------------
|
12505
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12506
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12507
|
+
-----------------------------------------------------------------------
|
12508
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
12509
|
+
-----------------------------------------------------------------------
|
12510
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12511
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12512
|
+
---------------------------------------------------------------------
|
12513
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
12514
|
+
---------------------------------------------------------------------
|
12515
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12516
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12517
|
+
--------------------------------------------------------------------------------------------------
|
12518
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
12519
|
+
--------------------------------------------------------------------------------------------------
|
12520
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12521
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12522
|
+
---------------------------------------------------------------------
|
12523
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
12524
|
+
---------------------------------------------------------------------
|
12525
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12526
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12527
|
+
-------------------------------------------------------------------------
|
12528
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12529
|
+
-------------------------------------------------------------------------
|
12530
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12531
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12532
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12533
|
+
---------------------------------------------------------------------------------
|
12534
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
12535
|
+
---------------------------------------------------------------------------------
|
12536
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12537
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12538
|
+
-----------------------------------------------------------------------------------------
|
12539
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
12540
|
+
-----------------------------------------------------------------------------------------
|
12541
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12542
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12543
|
+
------------------------------------------------------------------------------------------
|
12544
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
12545
|
+
------------------------------------------------------------------------------------------
|
12546
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12547
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12548
|
+
---------------------------------------------------------------------------------
|
12549
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
12550
|
+
---------------------------------------------------------------------------------
|
12551
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12552
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12553
|
+
-----------------------------------------------------------------------------------------------
|
12554
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
12555
|
+
-----------------------------------------------------------------------------------------------
|
12556
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12557
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12558
|
+
-------------------------------------------------------------------------------
|
12559
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
12560
|
+
-------------------------------------------------------------------------------
|
12561
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12562
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12563
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
12564
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
12565
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
12566
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12567
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12568
|
+
--------------------------------------------------------------------------
|
12569
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
12570
|
+
--------------------------------------------------------------------------
|
12571
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12572
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12573
|
+
-----------------------------------------------------------------------
|
12574
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
12575
|
+
-----------------------------------------------------------------------
|
12576
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12577
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12578
|
+
-----------------------------------------------------------------------
|
12579
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
12580
|
+
-----------------------------------------------------------------------
|
12581
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12582
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12583
|
+
-----------------------------------------------------------------
|
12584
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
12585
|
+
-----------------------------------------------------------------
|
12586
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12587
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12588
|
+
-----------------------------------------------------------------------------------------------
|
12589
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
12590
|
+
-----------------------------------------------------------------------------------------------
|
12591
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12592
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12593
|
+
------------------------------------------------------------------------------------------------
|
12594
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
12595
|
+
------------------------------------------------------------------------------------------------
|
12596
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12597
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:52:41.404224"], ["updated_at", "2021-06-15 07:52:41.404224"]]
|
12598
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12599
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12600
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12601
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12602
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12603
|
+
---------------------------------------------------------------------
|
12604
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
12605
|
+
---------------------------------------------------------------------
|
12606
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12607
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12608
|
+
--------------------------------------------------------------
|
12609
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
12610
|
+
--------------------------------------------------------------
|
12611
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12612
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.411993"], ["updated_at", "2021-06-15 07:52:41.411993"]]
|
12613
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12614
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12615
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.413434"], ["updated_at", "2021-06-15 07:52:41.413434"]]
|
12616
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12617
|
+
Processing by EmployeesController#edit as HTML
|
12618
|
+
Parameters: {"id"=>"82"}
|
12619
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 82], ["LIMIT", 1]]
|
12620
|
+
Rendering employees/edit.html.erb within layouts/application
|
12621
|
+
Rendered employees/_form.html.erb (14.4ms)
|
12622
|
+
Rendered employees/edit.html.erb within layouts/application (16.1ms)
|
12623
|
+
Completed 200 OK in 115ms (Views: 112.4ms | ActiveRecord: 0.4ms)
|
12624
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
12625
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12626
|
+
-----------------------------------------------------
|
12627
|
+
EmployeesControllerTest: test_should_destroy_employee
|
12628
|
+
-----------------------------------------------------
|
12629
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12630
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.533951"], ["updated_at", "2021-06-15 07:52:41.533951"]]
|
12631
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12632
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12633
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.535512"], ["updated_at", "2021-06-15 07:52:41.535512"]]
|
12634
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12635
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12636
|
+
Processing by EmployeesController#destroy as HTML
|
12637
|
+
Parameters: {"id"=>"84"}
|
12638
|
+
[1m[36mEmployee Load (0.4ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 84], ["LIMIT", 1]]
|
12639
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12640
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 84]]
|
12641
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12642
|
+
Redirected to http://test.host/employees
|
12643
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
|
12644
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12645
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12646
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12647
|
+
----------------------------------------------------
|
12648
|
+
EmployeesControllerTest: test_should_create_employee
|
12649
|
+
----------------------------------------------------
|
12650
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12651
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.547556"], ["updated_at", "2021-06-15 07:52:41.547556"]]
|
12652
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12653
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12654
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.549013"], ["updated_at", "2021-06-15 07:52:41.549013"]]
|
12655
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12656
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12657
|
+
Processing by EmployeesController#create as HTML
|
12658
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
12659
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12660
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-15 07:52:41.552264"], ["updated_at", "2021-06-15 07:52:41.552264"]]
|
12661
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12662
|
+
Redirected to http://test.host/employees/88
|
12663
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
|
12664
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12665
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12666
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
12667
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12668
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12669
|
+
--------------------------------------------------
|
12670
|
+
EmployeesControllerTest: test_should_show_employee
|
12671
|
+
--------------------------------------------------
|
12672
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12673
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.556821"], ["updated_at", "2021-06-15 07:52:41.556821"]]
|
12674
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12675
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12676
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.557981"], ["updated_at", "2021-06-15 07:52:41.557981"]]
|
12677
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12678
|
+
Processing by EmployeesController#show as HTML
|
12679
|
+
Parameters: {"id"=>"89"}
|
12680
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 89], ["LIMIT", 1]]
|
12681
|
+
Rendering employees/show.html.erb within layouts/application
|
12682
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
12683
|
+
Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)
|
12684
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12685
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12686
|
+
----------------------------------------------
|
12687
|
+
EmployeesControllerTest: test_should_get_index
|
12688
|
+
----------------------------------------------
|
12689
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12690
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.563682"], ["updated_at", "2021-06-15 07:52:41.563682"]]
|
12691
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12692
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12693
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.565170"], ["updated_at", "2021-06-15 07:52:41.565170"]]
|
12694
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12695
|
+
Processing by EmployeesController#index as HTML
|
12696
|
+
Rendering employees/index.html.erb within layouts/application
|
12697
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
12698
|
+
Rendered employees/index.html.erb within layouts/application (1.2ms)
|
12699
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
12700
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12701
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12702
|
+
--------------------------------------------
|
12703
|
+
EmployeesControllerTest: test_should_get_new
|
12704
|
+
--------------------------------------------
|
12705
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12706
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.570225"], ["updated_at", "2021-06-15 07:52:41.570225"]]
|
12707
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12708
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12709
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.571364"], ["updated_at", "2021-06-15 07:52:41.571364"]]
|
12710
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12711
|
+
Processing by EmployeesController#new as HTML
|
12712
|
+
Rendering employees/new.html.erb within layouts/application
|
12713
|
+
Rendered employees/_form.html.erb (2.0ms)
|
12714
|
+
Rendered employees/new.html.erb within layouts/application (2.4ms)
|
12715
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
12716
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12717
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12718
|
+
---------------------------------------------
|
12719
|
+
EmployeesControllerTest: test_should_get_edit
|
12720
|
+
---------------------------------------------
|
12721
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12722
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.578020"], ["updated_at", "2021-06-15 07:52:41.578020"]]
|
12723
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12724
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12725
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.579166"], ["updated_at", "2021-06-15 07:52:41.579166"]]
|
12726
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12727
|
+
Processing by EmployeesController#edit as HTML
|
12728
|
+
Parameters: {"id"=>"95"}
|
12729
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 95], ["LIMIT", 1]]
|
12730
|
+
Rendering employees/edit.html.erb within layouts/application
|
12731
|
+
Rendered employees/_form.html.erb (2.0ms)
|
12732
|
+
Rendered employees/edit.html.erb within layouts/application (2.4ms)
|
12733
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
12734
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12735
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12736
|
+
----------------------------------------------------
|
12737
|
+
EmployeesControllerTest: test_should_update_employee
|
12738
|
+
----------------------------------------------------
|
12739
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12740
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-15 07:52:41.586460"], ["updated_at", "2021-06-15 07:52:41.586460"]]
|
12741
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12742
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12743
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-15 07:52:41.587717"], ["updated_at", "2021-06-15 07:52:41.587717"]]
|
12744
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12745
|
+
Processing by EmployeesController#update as HTML
|
12746
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"97"}
|
12747
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 97], ["LIMIT", 1]]
|
12748
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12749
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-15 07:52:41.590584"], ["id", 97]]
|
12750
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12751
|
+
Redirected to http://test.host/employees/97
|
12752
|
+
Completed 302 Found in 21ms (ActiveRecord: 0.6ms)
|
12753
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 97], ["LIMIT", 1]]
|
12754
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12755
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12756
|
+
-------------------------------------------------------------------------------------------------------
|
12757
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
12758
|
+
-------------------------------------------------------------------------------------------------------
|
12759
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12760
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12761
|
+
------------------------------------------------------------------
|
12762
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
12763
|
+
------------------------------------------------------------------
|
12764
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12765
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12766
|
+
----------------------------------------------------------------------
|
12767
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12768
|
+
----------------------------------------------------------------------
|
12769
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12770
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12771
|
+
-------------------------------------------
|
12772
|
+
GovUkDateFieldsTest: test_date_fields_error
|
12773
|
+
-------------------------------------------
|
12774
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12775
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12776
|
+
----------------------------------------------
|
12777
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
12778
|
+
----------------------------------------------
|
12779
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12780
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12781
|
+
------------------------------------------------
|
12782
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
12783
|
+
------------------------------------------------
|
12784
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12785
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12786
|
+
----------------------------------------------------------------
|
12787
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
12788
|
+
----------------------------------------------------------------
|
12789
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12790
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12791
|
+
--------------------------------------------------------------------------
|
12792
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12793
|
+
--------------------------------------------------------------------------
|
12794
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12795
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12796
|
+
--------------------------------------------------------------------------------
|
12797
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
12798
|
+
--------------------------------------------------------------------------------
|
12799
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12800
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12801
|
+
----------------------------------------------------------------------
|
12802
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
12803
|
+
----------------------------------------------------------------------
|
12804
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12805
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12806
|
+
----------------------------------------------
|
12807
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
12808
|
+
----------------------------------------------
|
12809
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12810
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12811
|
+
-------------------------------------------------------------------------
|
12812
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
12813
|
+
-------------------------------------------------------------------------
|
12814
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12815
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12816
|
+
--------------------------------------------------------------------------------------------------
|
12817
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
12818
|
+
--------------------------------------------------------------------------------------------------
|
12819
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12820
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12821
|
+
---------------------------------------------------------------------
|
12822
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
12823
|
+
---------------------------------------------------------------------
|
12824
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12825
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12826
|
+
-------------------------------------------------------------------------
|
12827
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
12828
|
+
-------------------------------------------------------------------------
|
12829
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12830
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:52:41.651338"], ["updated_at", "2021-06-15 07:52:41.651338"]]
|
12831
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12832
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12833
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
12834
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12835
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12836
|
+
---------------------------------------------------------------------
|
12837
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
12838
|
+
---------------------------------------------------------------------
|
12839
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12840
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-15 07:52:41.654241"], ["updated_at", "2021-06-15 07:52:41.654241"]]
|
12841
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12842
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12843
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-15 07:52:41.655594"], ["id", 100]]
|
12844
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12845
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12846
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12847
|
+
----------------------------------------------------------------------------------------------------------------
|
12848
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
12849
|
+
----------------------------------------------------------------------------------------------------------------
|
12850
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12851
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12852
|
+
---------------------------------------------------------------------
|
12853
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
12854
|
+
---------------------------------------------------------------------
|
12855
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12856
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12857
|
+
----------------------------------------------
|
12858
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
12859
|
+
----------------------------------------------
|
12860
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12861
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12862
|
+
----------------------------------------------------------------------------------------------
|
12863
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
12864
|
+
----------------------------------------------------------------------------------------------
|
12865
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12866
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12867
|
+
-----------------------------------------------------------------
|
12868
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
12869
|
+
-----------------------------------------------------------------
|
12870
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12871
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12872
|
+
-------------------------------------------------------------------------------------------------------------------
|
12873
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
12874
|
+
-------------------------------------------------------------------------------------------------------------------
|
12875
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12876
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12877
|
+
------------------------------------------------------------------------------------------
|
12878
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
12879
|
+
------------------------------------------------------------------------------------------
|
12880
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12881
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12882
|
+
--------------------------------------------------------------------------
|
12883
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
12884
|
+
--------------------------------------------------------------------------
|
12885
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12886
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12887
|
+
-----------------------------------------------------------------------------------
|
12888
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
12889
|
+
-----------------------------------------------------------------------------------
|
12890
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12891
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12892
|
+
------------------------------------------------------------------------
|
12893
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
12894
|
+
------------------------------------------------------------------------
|
12895
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12896
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12897
|
+
-----------------------------------------------------------------------
|
12898
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
12899
|
+
-----------------------------------------------------------------------
|
12900
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12901
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12902
|
+
-------------------------------------------
|
12903
|
+
EmployeeTest: test_invalid_day_raises_error
|
12904
|
+
-------------------------------------------
|
12905
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12906
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12907
|
+
-----------------------------------------------------------
|
12908
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
12909
|
+
-----------------------------------------------------------
|
12910
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12911
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12912
|
+
---------------------------------------------------------------------------------------------------------
|
12913
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
12914
|
+
---------------------------------------------------------------------------------------------------------
|
12915
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12916
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12917
|
+
--------------------------------------------
|
12918
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
12919
|
+
--------------------------------------------
|
12920
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12921
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12922
|
+
-----------------------------------------------------------
|
12923
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
12924
|
+
-----------------------------------------------------------
|
12925
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12926
|
+
[1m[36mActiveRecord::SchemaMigration Load (7.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12927
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
12928
|
+
----------------------------------------------
|
12929
|
+
EmployeesControllerTest: test_should_get_index
|
12930
|
+
----------------------------------------------
|
12931
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12932
|
+
[1m[35mSQL (2.6ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:29.995092"], ["updated_at", "2021-06-16 07:47:29.995092"]]
|
12933
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12934
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12935
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:29.999427"], ["updated_at", "2021-06-16 07:47:29.999427"]]
|
12936
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12937
|
+
Processing by EmployeesController#index as HTML
|
12938
|
+
Rendering employees/index.html.erb within layouts/application
|
12939
|
+
[1m[36mEmployee Load (0.4ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
12940
|
+
Rendered employees/index.html.erb within layouts/application (7.7ms)
|
12941
|
+
Completed 200 OK in 65ms (Views: 63.3ms | ActiveRecord: 0.4ms)
|
12942
|
+
[1m[35m (6.1ms)[0m [1m[31mROLLBACK[0m
|
12943
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12944
|
+
----------------------------------------------------
|
12945
|
+
EmployeesControllerTest: test_should_create_employee
|
12946
|
+
----------------------------------------------------
|
12947
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12948
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.077449"], ["updated_at", "2021-06-16 07:47:30.077449"]]
|
12949
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12950
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12951
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.079929"], ["updated_at", "2021-06-16 07:47:30.079929"]]
|
12952
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12953
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12954
|
+
Processing by EmployeesController#create as HTML
|
12955
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
12956
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12957
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-16 07:47:30.088871"], ["updated_at", "2021-06-16 07:47:30.088871"]]
|
12958
|
+
[1m[35m (4.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12959
|
+
Redirected to http://test.host/employees/105
|
12960
|
+
Completed 302 Found in 8ms (ActiveRecord: 5.7ms)
|
12961
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12962
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
12963
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
12964
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12965
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12966
|
+
---------------------------------------------
|
12967
|
+
EmployeesControllerTest: test_should_get_edit
|
12968
|
+
---------------------------------------------
|
12969
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12970
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.099998"], ["updated_at", "2021-06-16 07:47:30.099998"]]
|
12971
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12972
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12973
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.101171"], ["updated_at", "2021-06-16 07:47:30.101171"]]
|
12974
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12975
|
+
Processing by EmployeesController#edit as HTML
|
12976
|
+
Parameters: {"id"=>"106"}
|
12977
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 106], ["LIMIT", 1]]
|
12978
|
+
Rendering employees/edit.html.erb within layouts/application
|
12979
|
+
Rendered employees/_form.html.erb (20.6ms)
|
12980
|
+
Rendered employees/edit.html.erb within layouts/application (22.2ms)
|
12981
|
+
Completed 200 OK in 29ms (Views: 25.4ms | ActiveRecord: 0.2ms)
|
12982
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12983
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12984
|
+
----------------------------------------------------
|
12985
|
+
EmployeesControllerTest: test_should_update_employee
|
12986
|
+
----------------------------------------------------
|
12987
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12988
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.133359"], ["updated_at", "2021-06-16 07:47:30.133359"]]
|
12989
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12990
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12991
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.134738"], ["updated_at", "2021-06-16 07:47:30.134738"]]
|
12992
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12993
|
+
Processing by EmployeesController#update as HTML
|
12994
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"108"}
|
12995
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 108], ["LIMIT", 1]]
|
12996
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12997
|
+
[1m[35mSQL (16.6ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-16 07:47:30.137841"], ["id", 108]]
|
12998
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12999
|
+
Redirected to http://test.host/employees/108
|
13000
|
+
Completed 302 Found in 20ms (ActiveRecord: 17.2ms)
|
13001
|
+
[1m[36mEmployee Load (0.5ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 108], ["LIMIT", 1]]
|
13002
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
13003
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13004
|
+
--------------------------------------------------------------
|
13005
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
13006
|
+
--------------------------------------------------------------
|
13007
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13008
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.160388"], ["updated_at", "2021-06-16 07:47:30.160388"]]
|
13009
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13010
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13011
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.162801"], ["updated_at", "2021-06-16 07:47:30.162801"]]
|
13012
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13013
|
+
Processing by EmployeesController#edit as HTML
|
13014
|
+
Parameters: {"id"=>"110"}
|
13015
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 110], ["LIMIT", 1]]
|
13016
|
+
Rendering employees/edit.html.erb within layouts/application
|
13017
|
+
Rendered employees/_form.html.erb (2.1ms)
|
13018
|
+
Rendered employees/edit.html.erb within layouts/application (2.4ms)
|
13019
|
+
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)
|
13020
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
13021
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13022
|
+
-----------------------------------------------------
|
13023
|
+
EmployeesControllerTest: test_should_destroy_employee
|
13024
|
+
-----------------------------------------------------
|
13025
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13026
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.172606"], ["updated_at", "2021-06-16 07:47:30.172606"]]
|
13027
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13028
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13029
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.174019"], ["updated_at", "2021-06-16 07:47:30.174019"]]
|
13030
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13031
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13032
|
+
Processing by EmployeesController#destroy as HTML
|
13033
|
+
Parameters: {"id"=>"112"}
|
13034
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 112], ["LIMIT", 1]]
|
13035
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13036
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 112]]
|
13037
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13038
|
+
Redirected to http://test.host/employees
|
13039
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
|
13040
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13041
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13042
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13043
|
+
--------------------------------------------------
|
13044
|
+
EmployeesControllerTest: test_should_show_employee
|
13045
|
+
--------------------------------------------------
|
13046
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13047
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.179450"], ["updated_at", "2021-06-16 07:47:30.179450"]]
|
13048
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13049
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13050
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.180555"], ["updated_at", "2021-06-16 07:47:30.180555"]]
|
13051
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13052
|
+
Processing by EmployeesController#show as HTML
|
13053
|
+
Parameters: {"id"=>"114"}
|
13054
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 114], ["LIMIT", 1]]
|
13055
|
+
Rendering employees/show.html.erb within layouts/application
|
13056
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
13057
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
13058
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13059
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13060
|
+
--------------------------------------------
|
13061
|
+
EmployeesControllerTest: test_should_get_new
|
13062
|
+
--------------------------------------------
|
13063
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13064
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:30.186468"], ["updated_at", "2021-06-16 07:47:30.186468"]]
|
13065
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13066
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13067
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:30.187759"], ["updated_at", "2021-06-16 07:47:30.187759"]]
|
13068
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13069
|
+
Processing by EmployeesController#new as HTML
|
13070
|
+
Rendering employees/new.html.erb within layouts/application
|
13071
|
+
Rendered employees/_form.html.erb (3.3ms)
|
13072
|
+
Rendered employees/new.html.erb within layouts/application (3.8ms)
|
13073
|
+
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
13074
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13075
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13076
|
+
-------------------------------------------------------------------------------------------------------
|
13077
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
13078
|
+
-------------------------------------------------------------------------------------------------------
|
13079
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13080
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13081
|
+
----------------------------------------------------------------------
|
13082
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13083
|
+
----------------------------------------------------------------------
|
13084
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13085
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13086
|
+
------------------------------------------------------------------
|
13087
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
13088
|
+
------------------------------------------------------------------
|
13089
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13090
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13091
|
+
----------------------------------------------
|
13092
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
13093
|
+
----------------------------------------------
|
13094
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13095
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13096
|
+
--------------------------------------------------------------------------------
|
13097
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
13098
|
+
--------------------------------------------------------------------------------
|
13099
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13100
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13101
|
+
--------------------------------------------------------------------------
|
13102
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13103
|
+
--------------------------------------------------------------------------
|
13104
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13105
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13106
|
+
----------------------------------------------------------------------
|
13107
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
13108
|
+
----------------------------------------------------------------------
|
13109
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13110
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13111
|
+
--------------------------------------------
|
13112
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
13113
|
+
--------------------------------------------
|
13114
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13115
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13116
|
+
--------------------------------------------------------------------------
|
13117
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
13118
|
+
--------------------------------------------------------------------------
|
13119
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13120
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13121
|
+
---------------------------------------------------------------------
|
13122
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
13123
|
+
---------------------------------------------------------------------
|
13124
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13125
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13126
|
+
-------------------------------------------
|
13127
|
+
EmployeeTest: test_invalid_day_raises_error
|
13128
|
+
-------------------------------------------
|
13129
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13130
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13131
|
+
-----------------------------------------------------------
|
13132
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
13133
|
+
-----------------------------------------------------------
|
13134
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13135
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13136
|
+
---------------------------------------------------------------------
|
13137
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
13138
|
+
---------------------------------------------------------------------
|
13139
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13140
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 07:47:30.235068"], ["updated_at", "2021-06-16 07:47:30.235068"]]
|
13141
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13142
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13143
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-16 07:47:30.237003"], ["id", 118]]
|
13144
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13145
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13146
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13147
|
+
-----------------------------------------------------------
|
13148
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
13149
|
+
-----------------------------------------------------------
|
13150
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13151
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13152
|
+
------------------------------------------------------------------------
|
13153
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
13154
|
+
------------------------------------------------------------------------
|
13155
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13156
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13157
|
+
---------------------------------------------------------------------------------------------------------
|
13158
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
13159
|
+
---------------------------------------------------------------------------------------------------------
|
13160
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13161
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13162
|
+
----------------------------------------------------------------------------------------------------------------
|
13163
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
13164
|
+
----------------------------------------------------------------------------------------------------------------
|
13165
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13166
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13167
|
+
-------------------------------------------------------------------------------------------------------------------
|
13168
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
13169
|
+
-------------------------------------------------------------------------------------------------------------------
|
13170
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13171
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13172
|
+
-----------------------------------------------------------------------
|
13173
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
13174
|
+
-----------------------------------------------------------------------
|
13175
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13176
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13177
|
+
----------------------------------------------------------------------------------------------
|
13178
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
13179
|
+
----------------------------------------------------------------------------------------------
|
13180
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13181
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13182
|
+
----------------------------------------------
|
13183
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
13184
|
+
----------------------------------------------
|
13185
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13186
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13187
|
+
-----------------------------------------------------------------------------------
|
13188
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
13189
|
+
-----------------------------------------------------------------------------------
|
13190
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13191
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13192
|
+
------------------------------------------------------------------------------------------
|
13193
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
13194
|
+
------------------------------------------------------------------------------------------
|
13195
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13196
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13197
|
+
-----------------------------------------------------------------
|
13198
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
13199
|
+
-----------------------------------------------------------------
|
13200
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13201
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13202
|
+
-------------------------------------------------------------------------
|
13203
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
13204
|
+
-------------------------------------------------------------------------
|
13205
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13206
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 07:47:30.250451"], ["updated_at", "2021-06-16 07:47:30.250451"]]
|
13207
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13208
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13209
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
13210
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13211
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13212
|
+
--------------------------------------------------------------------------
|
13213
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
13214
|
+
--------------------------------------------------------------------------
|
13215
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13216
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13217
|
+
-----------------------------------------------------------------------
|
13218
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
13219
|
+
-----------------------------------------------------------------------
|
13220
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13221
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13222
|
+
---------------------------------------------------------------------
|
13223
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
13224
|
+
---------------------------------------------------------------------
|
13225
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13226
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13227
|
+
-----------------------------------------------------------------------------------------------
|
13228
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
13229
|
+
-----------------------------------------------------------------------------------------------
|
13230
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13231
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13232
|
+
-----------------------------------------------------------------
|
13233
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
13234
|
+
-----------------------------------------------------------------
|
13235
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13236
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13237
|
+
------------------------------------------------------------------------------------------------
|
13238
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
13239
|
+
------------------------------------------------------------------------------------------------
|
13240
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13241
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 07:47:30.264767"], ["updated_at", "2021-06-16 07:47:30.264767"]]
|
13242
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13243
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13244
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13245
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13246
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13247
|
+
-----------------------------------------------------------------------
|
13248
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
13249
|
+
-----------------------------------------------------------------------
|
13250
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13251
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13252
|
+
-------------------------------------------------------------------------
|
13253
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13254
|
+
-------------------------------------------------------------------------
|
13255
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13256
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13257
|
+
--------------------------------------------------------------------------------------------------
|
13258
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
13259
|
+
--------------------------------------------------------------------------------------------------
|
13260
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13261
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13262
|
+
---------------------------------------------------------------------
|
13263
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
13264
|
+
---------------------------------------------------------------------
|
13265
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13266
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13267
|
+
-----------------------------------------------------------------------------------------
|
13268
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
13269
|
+
-----------------------------------------------------------------------------------------
|
13270
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13271
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13272
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
13273
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
13274
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
13275
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13276
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13277
|
+
-------------------------------------------------------------------------------
|
13278
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
13279
|
+
-------------------------------------------------------------------------------
|
13280
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13281
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13282
|
+
-----------------------------------------------------------------------------------------------
|
13283
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
13284
|
+
-----------------------------------------------------------------------------------------------
|
13285
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13286
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13287
|
+
---------------------------------------------------------------------------------
|
13288
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
13289
|
+
---------------------------------------------------------------------------------
|
13290
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13291
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13292
|
+
------------------------------------------------------------------------------------------
|
13293
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
13294
|
+
------------------------------------------------------------------------------------------
|
13295
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13296
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13297
|
+
---------------------------------------------------------------------------------
|
13298
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
13299
|
+
---------------------------------------------------------------------------------
|
13300
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13301
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13302
|
+
----------------------------------------------
|
13303
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
13304
|
+
----------------------------------------------
|
13305
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13306
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13307
|
+
------------------------------------------------
|
13308
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
13309
|
+
------------------------------------------------
|
13310
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13311
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13312
|
+
-------------------------------------------
|
13313
|
+
GovUkDateFieldsTest: test_date_fields_error
|
13314
|
+
-------------------------------------------
|
13315
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13316
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13317
|
+
----------------------------------------------------------------
|
13318
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
13319
|
+
----------------------------------------------------------------
|
13320
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13321
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13322
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13323
|
+
----------------------------------------------
|
13324
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
13325
|
+
----------------------------------------------
|
13326
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13327
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13328
|
+
----------------------------------------------------------------
|
13329
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
13330
|
+
----------------------------------------------------------------
|
13331
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13332
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13333
|
+
-------------------------------------------
|
13334
|
+
GovUkDateFieldsTest: test_date_fields_error
|
13335
|
+
-------------------------------------------
|
13336
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13337
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13338
|
+
------------------------------------------------
|
13339
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
13340
|
+
------------------------------------------------
|
13341
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13342
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13343
|
+
-----------------------------------------------------------------------------------------------
|
13344
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
13345
|
+
-----------------------------------------------------------------------------------------------
|
13346
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13347
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13348
|
+
-----------------------------------------------------------------------
|
13349
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
13350
|
+
-----------------------------------------------------------------------
|
13351
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13352
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13353
|
+
------------------------------------------------------------------------------------------------
|
13354
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
13355
|
+
------------------------------------------------------------------------------------------------
|
13356
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13357
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 07:47:40.922940"], ["updated_at", "2021-06-16 07:47:40.922940"]]
|
13358
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13359
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13360
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13361
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13362
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13363
|
+
--------------------------------------------------------------------------
|
13364
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
13365
|
+
--------------------------------------------------------------------------
|
13366
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13367
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13368
|
+
-----------------------------------------------------------------
|
13369
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
13370
|
+
-----------------------------------------------------------------
|
13371
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13372
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13373
|
+
---------------------------------------------------------------------
|
13374
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
13375
|
+
---------------------------------------------------------------------
|
13376
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13377
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13378
|
+
-----------------------------------------------------------------------
|
13379
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
13380
|
+
-----------------------------------------------------------------------
|
13381
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13382
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13383
|
+
----------------------------------------------
|
13384
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
13385
|
+
----------------------------------------------
|
13386
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13387
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13388
|
+
---------------------------------------------------------------------------------
|
13389
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
13390
|
+
---------------------------------------------------------------------------------
|
13391
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13392
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13393
|
+
------------------------------------------------------------------------------------------
|
13394
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
13395
|
+
------------------------------------------------------------------------------------------
|
13396
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13397
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13398
|
+
-------------------------------------------------------------------------------
|
13399
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
13400
|
+
-------------------------------------------------------------------------------
|
13401
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13402
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13403
|
+
-----------------------------------------------------------------------------------------
|
13404
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
13405
|
+
-----------------------------------------------------------------------------------------
|
13406
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13407
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13408
|
+
-----------------------------------------------------------------------------------------------
|
13409
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
13410
|
+
-----------------------------------------------------------------------------------------------
|
13411
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13412
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13413
|
+
---------------------------------------------------------------------------------
|
13414
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
13415
|
+
---------------------------------------------------------------------------------
|
13416
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13417
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13418
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
13419
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
13420
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
13421
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13422
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13423
|
+
--------------------------------------------------------------------------------------------------
|
13424
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
13425
|
+
--------------------------------------------------------------------------------------------------
|
13426
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13427
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13428
|
+
---------------------------------------------------------------------
|
13429
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
13430
|
+
---------------------------------------------------------------------
|
13431
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13432
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13433
|
+
-------------------------------------------------------------------------
|
13434
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13435
|
+
-------------------------------------------------------------------------
|
13436
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13437
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13438
|
+
-------------------------------------------------------------------------------------------------------
|
13439
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
13440
|
+
-------------------------------------------------------------------------------------------------------
|
13441
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13442
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13443
|
+
------------------------------------------------------------------
|
13444
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
13445
|
+
------------------------------------------------------------------
|
13446
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13447
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13448
|
+
----------------------------------------------------------------------
|
13449
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13450
|
+
----------------------------------------------------------------------
|
13451
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13452
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13453
|
+
--------------------------------------------
|
13454
|
+
EmployeesControllerTest: test_should_get_new
|
13455
|
+
--------------------------------------------
|
13456
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13457
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:40.972421"], ["updated_at", "2021-06-16 07:47:40.972421"]]
|
13458
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13459
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13460
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:40.973919"], ["updated_at", "2021-06-16 07:47:40.973919"]]
|
13461
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13462
|
+
Processing by EmployeesController#new as HTML
|
13463
|
+
Rendering employees/new.html.erb within layouts/application
|
13464
|
+
Rendered employees/_form.html.erb (8.6ms)
|
13465
|
+
Rendered employees/new.html.erb within layouts/application (9.5ms)
|
13466
|
+
Completed 200 OK in 28ms (Views: 26.8ms | ActiveRecord: 0.0ms)
|
13467
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13468
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13469
|
+
----------------------------------------------------
|
13470
|
+
EmployeesControllerTest: test_should_create_employee
|
13471
|
+
----------------------------------------------------
|
13472
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13473
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.006682"], ["updated_at", "2021-06-16 07:47:41.006682"]]
|
13474
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13475
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13476
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.008825"], ["updated_at", "2021-06-16 07:47:41.008825"]]
|
13477
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13478
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13479
|
+
Processing by EmployeesController#create as HTML
|
13480
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
13481
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13482
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-16 07:47:41.016609"], ["updated_at", "2021-06-16 07:47:41.016609"]]
|
13483
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13484
|
+
Redirected to http://test.host/employees/126
|
13485
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
13486
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13487
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13488
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
13489
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13490
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13491
|
+
--------------------------------------------------
|
13492
|
+
EmployeesControllerTest: test_should_show_employee
|
13493
|
+
--------------------------------------------------
|
13494
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13495
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.022087"], ["updated_at", "2021-06-16 07:47:41.022087"]]
|
13496
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13497
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13498
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.023464"], ["updated_at", "2021-06-16 07:47:41.023464"]]
|
13499
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13500
|
+
Processing by EmployeesController#show as HTML
|
13501
|
+
Parameters: {"id"=>"127"}
|
13502
|
+
[1m[36mEmployee Load (0.4ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 127], ["LIMIT", 1]]
|
13503
|
+
Rendering employees/show.html.erb within layouts/application
|
13504
|
+
Rendered employees/show.html.erb within layouts/application (0.7ms)
|
13505
|
+
Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.4ms)
|
13506
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
13507
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13508
|
+
-----------------------------------------------------
|
13509
|
+
EmployeesControllerTest: test_should_destroy_employee
|
13510
|
+
-----------------------------------------------------
|
13511
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13512
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.034980"], ["updated_at", "2021-06-16 07:47:41.034980"]]
|
13513
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13514
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13515
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.036670"], ["updated_at", "2021-06-16 07:47:41.036670"]]
|
13516
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13517
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13518
|
+
Processing by EmployeesController#destroy as HTML
|
13519
|
+
Parameters: {"id"=>"129"}
|
13520
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 129], ["LIMIT", 1]]
|
13521
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13522
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 129]]
|
13523
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13524
|
+
Redirected to http://test.host/employees
|
13525
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
|
13526
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13527
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13528
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13529
|
+
--------------------------------------------------------------
|
13530
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
13531
|
+
--------------------------------------------------------------
|
13532
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13533
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.043136"], ["updated_at", "2021-06-16 07:47:41.043136"]]
|
13534
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13535
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13536
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.044331"], ["updated_at", "2021-06-16 07:47:41.044331"]]
|
13537
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13538
|
+
Processing by EmployeesController#edit as HTML
|
13539
|
+
Parameters: {"id"=>"131"}
|
13540
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 131], ["LIMIT", 1]]
|
13541
|
+
Rendering employees/edit.html.erb within layouts/application
|
13542
|
+
Rendered employees/_form.html.erb (2.4ms)
|
13543
|
+
Rendered employees/edit.html.erb within layouts/application (2.9ms)
|
13544
|
+
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
|
13545
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13546
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13547
|
+
----------------------------------------------
|
13548
|
+
EmployeesControllerTest: test_should_get_index
|
13549
|
+
----------------------------------------------
|
13550
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13551
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.053922"], ["updated_at", "2021-06-16 07:47:41.053922"]]
|
13552
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13553
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13554
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.055088"], ["updated_at", "2021-06-16 07:47:41.055088"]]
|
13555
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13556
|
+
Processing by EmployeesController#index as HTML
|
13557
|
+
Rendering employees/index.html.erb within layouts/application
|
13558
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
13559
|
+
Rendered employees/index.html.erb within layouts/application (1.9ms)
|
13560
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)
|
13561
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
13562
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13563
|
+
---------------------------------------------
|
13564
|
+
EmployeesControllerTest: test_should_get_edit
|
13565
|
+
---------------------------------------------
|
13566
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13567
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.063388"], ["updated_at", "2021-06-16 07:47:41.063388"]]
|
13568
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13569
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13570
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.065005"], ["updated_at", "2021-06-16 07:47:41.065005"]]
|
13571
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13572
|
+
Processing by EmployeesController#edit as HTML
|
13573
|
+
Parameters: {"id"=>"135"}
|
13574
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 135], ["LIMIT", 1]]
|
13575
|
+
Rendering employees/edit.html.erb within layouts/application
|
13576
|
+
Rendered employees/_form.html.erb (2.2ms)
|
13577
|
+
Rendered employees/edit.html.erb within layouts/application (2.5ms)
|
13578
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
13579
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13580
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13581
|
+
----------------------------------------------------
|
13582
|
+
EmployeesControllerTest: test_should_update_employee
|
13583
|
+
----------------------------------------------------
|
13584
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13585
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 07:47:41.073120"], ["updated_at", "2021-06-16 07:47:41.073120"]]
|
13586
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13587
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13588
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 07:47:41.074498"], ["updated_at", "2021-06-16 07:47:41.074498"]]
|
13589
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13590
|
+
Processing by EmployeesController#update as HTML
|
13591
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"137"}
|
13592
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 137], ["LIMIT", 1]]
|
13593
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13594
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-16 07:47:41.077781"], ["id", 137]]
|
13595
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13596
|
+
Redirected to http://test.host/employees/137
|
13597
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
13598
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 137], ["LIMIT", 1]]
|
13599
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13600
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13601
|
+
--------------------------------------------------------------------------------
|
13602
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
13603
|
+
--------------------------------------------------------------------------------
|
13604
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13605
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13606
|
+
----------------------------------------------------------------------
|
13607
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
13608
|
+
----------------------------------------------------------------------
|
13609
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13610
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13611
|
+
--------------------------------------------------------------------------
|
13612
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13613
|
+
--------------------------------------------------------------------------
|
13614
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13615
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13616
|
+
-------------------------------------------
|
13617
|
+
EmployeeTest: test_invalid_day_raises_error
|
13618
|
+
-------------------------------------------
|
13619
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13620
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13621
|
+
-----------------------------------------------------------------------------------
|
13622
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
13623
|
+
-----------------------------------------------------------------------------------
|
13624
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13625
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13626
|
+
-------------------------------------------------------------------------------------------------------------------
|
13627
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
13628
|
+
-------------------------------------------------------------------------------------------------------------------
|
13629
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13630
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13631
|
+
-----------------------------------------------------------------
|
13632
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
13633
|
+
-----------------------------------------------------------------
|
13634
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13635
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13636
|
+
----------------------------------------------------------------------------------------------------------------
|
13637
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
13638
|
+
----------------------------------------------------------------------------------------------------------------
|
13639
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13640
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13641
|
+
---------------------------------------------------------------------
|
13642
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
13643
|
+
---------------------------------------------------------------------
|
13644
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13645
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 07:47:41.094627"], ["updated_at", "2021-06-16 07:47:41.094627"]]
|
13646
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13647
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13648
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-16 07:47:41.096389"], ["id", 139]]
|
13649
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13650
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13651
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13652
|
+
---------------------------------------------------------------------
|
13653
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
13654
|
+
---------------------------------------------------------------------
|
13655
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13656
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13657
|
+
-----------------------------------------------------------------------
|
13658
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
13659
|
+
-----------------------------------------------------------------------
|
13660
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13661
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13662
|
+
------------------------------------------------------------------------------------------
|
13663
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
13664
|
+
------------------------------------------------------------------------------------------
|
13665
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13666
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13667
|
+
--------------------------------------------------------------------------
|
13668
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
13669
|
+
--------------------------------------------------------------------------
|
13670
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13671
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13672
|
+
------------------------------------------------------------------------
|
13673
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
13674
|
+
------------------------------------------------------------------------
|
13675
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13676
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13677
|
+
-------------------------------------------------------------------------
|
13678
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
13679
|
+
-------------------------------------------------------------------------
|
13680
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13681
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 07:47:41.103002"], ["updated_at", "2021-06-16 07:47:41.103002"]]
|
13682
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13683
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13684
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
13685
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13686
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13687
|
+
----------------------------------------------
|
13688
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
13689
|
+
----------------------------------------------
|
13690
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13691
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13692
|
+
-----------------------------------------------------------
|
13693
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
13694
|
+
-----------------------------------------------------------
|
13695
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13696
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13697
|
+
-----------------------------------------------------------
|
13698
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
13699
|
+
-----------------------------------------------------------
|
13700
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13701
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13702
|
+
---------------------------------------------------------------------------------------------------------
|
13703
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
13704
|
+
---------------------------------------------------------------------------------------------------------
|
13705
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13706
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13707
|
+
----------------------------------------------------------------------------------------------
|
13708
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
13709
|
+
----------------------------------------------------------------------------------------------
|
13710
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13711
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13712
|
+
--------------------------------------------
|
13713
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
13714
|
+
--------------------------------------------
|
13715
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13716
|
+
[1m[35m (2.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
13717
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
13718
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13719
|
+
-----------------------------------------------------------------------------------------
|
13720
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
13721
|
+
-----------------------------------------------------------------------------------------
|
13722
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13723
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13724
|
+
-----------------------------------------------------------------------------------------------
|
13725
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
13726
|
+
-----------------------------------------------------------------------------------------------
|
13727
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13728
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13729
|
+
-------------------------------------------------------------------------------
|
13730
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
13731
|
+
-------------------------------------------------------------------------------
|
13732
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13733
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13734
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
13735
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
13736
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
13737
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13738
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13739
|
+
---------------------------------------------------------------------------------
|
13740
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
13741
|
+
---------------------------------------------------------------------------------
|
13742
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13743
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13744
|
+
---------------------------------------------------------------------------------
|
13745
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
13746
|
+
---------------------------------------------------------------------------------
|
13747
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13748
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13749
|
+
------------------------------------------------------------------------------------------
|
13750
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
13751
|
+
------------------------------------------------------------------------------------------
|
13752
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13753
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13754
|
+
--------------------------------------------------------------------------
|
13755
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13756
|
+
--------------------------------------------------------------------------
|
13757
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13758
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13759
|
+
--------------------------------------------------------------------------------
|
13760
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
13761
|
+
--------------------------------------------------------------------------------
|
13762
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13763
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13764
|
+
----------------------------------------------------------------------
|
13765
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
13766
|
+
----------------------------------------------------------------------
|
13767
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13768
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13769
|
+
-----------------------------------------------------------------
|
13770
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
13771
|
+
-----------------------------------------------------------------
|
13772
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13773
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13774
|
+
----------------------------------------------------------------------------------------------------------------
|
13775
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
13776
|
+
----------------------------------------------------------------------------------------------------------------
|
13777
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13778
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13779
|
+
-------------------------------------------------------------------------------------------------------------------
|
13780
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
13781
|
+
-------------------------------------------------------------------------------------------------------------------
|
13782
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13783
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13784
|
+
-----------------------------------------------------------
|
13785
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
13786
|
+
-----------------------------------------------------------
|
13787
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13788
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13789
|
+
----------------------------------------------------------------------------------------------
|
13790
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
13791
|
+
----------------------------------------------------------------------------------------------
|
13792
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13793
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13794
|
+
---------------------------------------------------------------------------------------------------------
|
13795
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
13796
|
+
---------------------------------------------------------------------------------------------------------
|
13797
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13798
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13799
|
+
-------------------------------------------------------------------------
|
13800
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
13801
|
+
-------------------------------------------------------------------------
|
13802
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13803
|
+
[1m[36mEmployee Create (0.6ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:12:13.315245"], ["updated_at", "2021-06-16 08:12:13.315245"]]
|
13804
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13805
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13806
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13807
|
+
---------------------------------------------------------------------
|
13808
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
13809
|
+
---------------------------------------------------------------------
|
13810
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13811
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:12:13.318678"], ["updated_at", "2021-06-16 08:12:13.318678"]]
|
13812
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13813
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13814
|
+
[1m[36mEmployee Update (0.3ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-16 08:12:13.319846"], ["id", 142]]
|
13815
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13816
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13817
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13818
|
+
---------------------------------------------------------------------
|
13819
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
13820
|
+
---------------------------------------------------------------------
|
13821
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13822
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13823
|
+
-----------------------------------------------------------
|
13824
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
13825
|
+
-----------------------------------------------------------
|
13826
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13827
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13828
|
+
--------------------------------------------------------------------------
|
13829
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
13830
|
+
--------------------------------------------------------------------------
|
13831
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13832
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13833
|
+
------------------------------------------------------------------------
|
13834
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
13835
|
+
------------------------------------------------------------------------
|
13836
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13837
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13838
|
+
------------------------------------------------------------------------------------------
|
13839
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
13840
|
+
------------------------------------------------------------------------------------------
|
13841
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13842
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13843
|
+
-----------------------------------------------------------------------
|
13844
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
13845
|
+
-----------------------------------------------------------------------
|
13846
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13847
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13848
|
+
-------------------------------------------
|
13849
|
+
EmployeeTest: test_invalid_day_raises_error
|
13850
|
+
-------------------------------------------
|
13851
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13852
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
13853
|
+
--------------------------------------------
|
13854
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
13855
|
+
--------------------------------------------
|
13856
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13857
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13858
|
+
-----------------------------------------------------------------------------------
|
13859
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
13860
|
+
-----------------------------------------------------------------------------------
|
13861
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13862
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13863
|
+
----------------------------------------------
|
13864
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
13865
|
+
----------------------------------------------
|
13866
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
13867
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
13868
|
+
----------------------------------------------
|
13869
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
13870
|
+
----------------------------------------------
|
13871
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13872
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13873
|
+
---------------------------------------------------------------------
|
13874
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
13875
|
+
---------------------------------------------------------------------
|
13876
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13877
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13878
|
+
--------------------------------------------------------------------------------------------------
|
13879
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
13880
|
+
--------------------------------------------------------------------------------------------------
|
13881
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13882
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13883
|
+
-------------------------------------------------------------------------
|
13884
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
13885
|
+
-------------------------------------------------------------------------
|
13886
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13887
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13888
|
+
----------------------------------------------------
|
13889
|
+
EmployeesControllerTest: test_should_update_employee
|
13890
|
+
----------------------------------------------------
|
13891
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13892
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.409947"], ["updated_at", "2021-06-16 08:12:13.409947"]]
|
13893
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13894
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13895
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.411263"], ["updated_at", "2021-06-16 08:12:13.411263"]]
|
13896
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13897
|
+
Processing by EmployeesController#update as HTML
|
13898
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"143"}
|
13899
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 143], ["LIMIT", 1]]
|
13900
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13901
|
+
[1m[36mEmployee Update (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-16 08:12:13.422904"], ["id", 143]]
|
13902
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13903
|
+
Redirected to http://test.host/employees/143
|
13904
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.7ms | Allocations: 2058)
|
13905
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 143], ["LIMIT", 1]]
|
13906
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13907
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13908
|
+
-----------------------------------------------------
|
13909
|
+
EmployeesControllerTest: test_should_destroy_employee
|
13910
|
+
-----------------------------------------------------
|
13911
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13912
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.426958"], ["updated_at", "2021-06-16 08:12:13.426958"]]
|
13913
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13914
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13915
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.427983"], ["updated_at", "2021-06-16 08:12:13.427983"]]
|
13916
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13917
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13918
|
+
Processing by EmployeesController#destroy as HTML
|
13919
|
+
Parameters: {"id"=>"145"}
|
13920
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 145], ["LIMIT", 1]]
|
13921
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13922
|
+
[1m[36mEmployee Destroy (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 145]]
|
13923
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13924
|
+
Redirected to http://test.host/employees
|
13925
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms | Allocations: 427)
|
13926
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
13927
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
13928
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13929
|
+
--------------------------------------------------
|
13930
|
+
EmployeesControllerTest: test_should_show_employee
|
13931
|
+
--------------------------------------------------
|
13932
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13933
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.433190"], ["updated_at", "2021-06-16 08:12:13.433190"]]
|
13934
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13935
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13936
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.434143"], ["updated_at", "2021-06-16 08:12:13.434143"]]
|
13937
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13938
|
+
Processing by EmployeesController#show as HTML
|
13939
|
+
Parameters: {"id"=>"147"}
|
13940
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 147], ["LIMIT", 1]]
|
13941
|
+
Rendering employees/show.html.erb within layouts/application
|
13942
|
+
Rendered employees/show.html.erb within layouts/application (Duration: 1.0ms | Allocations: 428)
|
13943
|
+
Completed 200 OK in 50ms (Views: 47.6ms | ActiveRecord: 0.2ms | Allocations: 17947)
|
13944
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13945
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13946
|
+
----------------------------------------------
|
13947
|
+
EmployeesControllerTest: test_should_get_index
|
13948
|
+
----------------------------------------------
|
13949
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13950
|
+
[1m[36mEmployee Create (0.5ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.487496"], ["updated_at", "2021-06-16 08:12:13.487496"]]
|
13951
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13952
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13953
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.489957"], ["updated_at", "2021-06-16 08:12:13.489957"]]
|
13954
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13955
|
+
Processing by EmployeesController#index as HTML
|
13956
|
+
Rendering employees/index.html.erb within layouts/application
|
13957
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
13958
|
+
Rendered employees/index.html.erb within layouts/application (Duration: 2.3ms | Allocations: 739)
|
13959
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms | Allocations: 2118)
|
13960
|
+
[1m[35m (1.8ms)[0m [1m[31mROLLBACK[0m
|
13961
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
13962
|
+
--------------------------------------------
|
13963
|
+
EmployeesControllerTest: test_should_get_new
|
13964
|
+
--------------------------------------------
|
13965
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13966
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.503932"], ["updated_at", "2021-06-16 08:12:13.503932"]]
|
13967
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13968
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13969
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.506021"], ["updated_at", "2021-06-16 08:12:13.506021"]]
|
13970
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13971
|
+
Processing by EmployeesController#new as HTML
|
13972
|
+
Rendering employees/new.html.erb within layouts/application
|
13973
|
+
Rendered employees/_form.html.erb (Duration: 3.9ms | Allocations: 2144)
|
13974
|
+
Rendered employees/new.html.erb within layouts/application (Duration: 4.6ms | Allocations: 2463)
|
13975
|
+
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms | Allocations: 3869)
|
13976
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
13977
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13978
|
+
---------------------------------------------
|
13979
|
+
EmployeesControllerTest: test_should_get_edit
|
13980
|
+
---------------------------------------------
|
13981
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13982
|
+
[1m[36mEmployee Create (6.0ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.517193"], ["updated_at", "2021-06-16 08:12:13.517193"]]
|
13983
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13984
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13985
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.525300"], ["updated_at", "2021-06-16 08:12:13.525300"]]
|
13986
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13987
|
+
Processing by EmployeesController#edit as HTML
|
13988
|
+
Parameters: {"id"=>"153"}
|
13989
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 153], ["LIMIT", 1]]
|
13990
|
+
Rendering employees/edit.html.erb within layouts/application
|
13991
|
+
Rendered employees/_form.html.erb (Duration: 11.6ms | Allocations: 1320)
|
13992
|
+
Rendered employees/edit.html.erb within layouts/application (Duration: 14.5ms | Allocations: 1545)
|
13993
|
+
Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.3ms | Allocations: 3061)
|
13994
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
13995
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
13996
|
+
--------------------------------------------------------------
|
13997
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
13998
|
+
--------------------------------------------------------------
|
13999
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14000
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.550768"], ["updated_at", "2021-06-16 08:12:13.550768"]]
|
14001
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14002
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14003
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.552645"], ["updated_at", "2021-06-16 08:12:13.552645"]]
|
14004
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14005
|
+
Processing by EmployeesController#edit as HTML
|
14006
|
+
Parameters: {"id"=>"155"}
|
14007
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 155], ["LIMIT", 1]]
|
14008
|
+
Rendering employees/edit.html.erb within layouts/application
|
14009
|
+
Rendered employees/_form.html.erb (Duration: 2.1ms | Allocations: 1290)
|
14010
|
+
Rendered employees/edit.html.erb within layouts/application (Duration: 2.5ms | Allocations: 1390)
|
14011
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms | Allocations: 2764)
|
14012
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
14013
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14014
|
+
----------------------------------------------------
|
14015
|
+
EmployeesControllerTest: test_should_create_employee
|
14016
|
+
----------------------------------------------------
|
14017
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14018
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:12:13.565556"], ["updated_at", "2021-06-16 08:12:13.565556"]]
|
14019
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14020
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14021
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:12:13.567203"], ["updated_at", "2021-06-16 08:12:13.567203"]]
|
14022
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14023
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14024
|
+
Processing by EmployeesController#create as HTML
|
14025
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
14026
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14027
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-16 08:12:13.571674"], ["updated_at", "2021-06-16 08:12:13.571674"]]
|
14028
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14029
|
+
Redirected to http://test.host/employees/159
|
14030
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms | Allocations: 862)
|
14031
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14032
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14033
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
14034
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14035
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14036
|
+
------------------------------------------------------------------
|
14037
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
14038
|
+
------------------------------------------------------------------
|
14039
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14040
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14041
|
+
----------------------------------------------------------------------
|
14042
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14043
|
+
----------------------------------------------------------------------
|
14044
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14045
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14046
|
+
-------------------------------------------------------------------------------------------------------
|
14047
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
14048
|
+
-------------------------------------------------------------------------------------------------------
|
14049
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14050
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14051
|
+
-------------------------------------
|
14052
|
+
GovUkDateFieldsTest: test_squash_html
|
14053
|
+
-------------------------------------
|
14054
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14055
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14056
|
+
-------------------------------------------------------------------------------
|
14057
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
14058
|
+
-------------------------------------------------------------------------------
|
14059
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14060
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14061
|
+
------------------------------------------------------------------------------------------------------
|
14062
|
+
GovUkDateFieldsTest: test_fieldset_without_explicit_`id`_passed_in_the_options_(will_be_autogenerated)
|
14063
|
+
------------------------------------------------------------------------------------------------------
|
14064
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14065
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14066
|
+
------------------------------------------
|
14067
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
14068
|
+
------------------------------------------
|
14069
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14070
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14071
|
+
-------------------------------------------------------------
|
14072
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
14073
|
+
-------------------------------------------------------------
|
14074
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14075
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14076
|
+
---------------------------------------------------------------
|
14077
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
14078
|
+
---------------------------------------------------------------
|
14079
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14080
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14081
|
+
---------------------------------------------------------------
|
14082
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
14083
|
+
---------------------------------------------------------------
|
14084
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14085
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14086
|
+
--------------------------------------------------------
|
14087
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
14088
|
+
--------------------------------------------------------
|
14089
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14090
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14091
|
+
---------------------------------------------------------------------------------------
|
14092
|
+
GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified
|
14093
|
+
---------------------------------------------------------------------------------------
|
14094
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14095
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14096
|
+
-------------------------------------------------------
|
14097
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
14098
|
+
-------------------------------------------------------
|
14099
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14100
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14101
|
+
----------------------------------------------------------------------------------
|
14102
|
+
GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied
|
14103
|
+
----------------------------------------------------------------------------------
|
14104
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14105
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14106
|
+
----------------------------------------------------------------------------------------
|
14107
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message,_with_autogenerated_`id`
|
14108
|
+
----------------------------------------------------------------------------------------
|
14109
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14110
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14111
|
+
-----------------------------------------------------------
|
14112
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
14113
|
+
-----------------------------------------------------------
|
14114
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14115
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14116
|
+
-----------------------------------------------------------------------------------------------
|
14117
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
14118
|
+
-----------------------------------------------------------------------------------------------
|
14119
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14120
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14121
|
+
-----------------------------------------------------------------------
|
14122
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
14123
|
+
-----------------------------------------------------------------------
|
14124
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14125
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14126
|
+
------------------------------------------------------------------------------------------------
|
14127
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
14128
|
+
------------------------------------------------------------------------------------------------
|
14129
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14130
|
+
[1m[36mDirector Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:12:13.622504"], ["updated_at", "2021-06-16 08:12:13.622504"]]
|
14131
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14132
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14133
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14134
|
+
-----------------------------------------------------------------
|
14135
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
14136
|
+
-----------------------------------------------------------------
|
14137
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14138
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14139
|
+
--------------------------------------------------------------------------
|
14140
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
14141
|
+
--------------------------------------------------------------------------
|
14142
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14143
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14144
|
+
-----------------------------------------------------------------------
|
14145
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
14146
|
+
-----------------------------------------------------------------------
|
14147
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14148
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14149
|
+
---------------------------------------------------------------------
|
14150
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
14151
|
+
---------------------------------------------------------------------
|
14152
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14153
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
14154
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14155
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14156
|
+
-----------------------------------------------------------------
|
14157
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
14158
|
+
-----------------------------------------------------------------
|
14159
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14160
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14161
|
+
--------------------------------------------------------------------------
|
14162
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
14163
|
+
--------------------------------------------------------------------------
|
14164
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14165
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14166
|
+
-----------------------------------------------------------------------------------------------
|
14167
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
14168
|
+
-----------------------------------------------------------------------------------------------
|
14169
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14170
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14171
|
+
-----------------------------------------------------------------------
|
14172
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
14173
|
+
-----------------------------------------------------------------------
|
14174
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14175
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14176
|
+
---------------------------------------------------------------------
|
14177
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
14178
|
+
---------------------------------------------------------------------
|
14179
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14180
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14181
|
+
------------------------------------------------------------------------------------------------
|
14182
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
14183
|
+
------------------------------------------------------------------------------------------------
|
14184
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14185
|
+
[1m[36mDirector Create (0.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:15:47.536542"], ["updated_at", "2021-06-16 08:15:47.536542"]]
|
14186
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14187
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14188
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14189
|
+
-----------------------------------------------------------------------
|
14190
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
14191
|
+
-----------------------------------------------------------------------
|
14192
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14193
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14194
|
+
-------------------------------------------------------------------------------------------------------
|
14195
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
14196
|
+
-------------------------------------------------------------------------------------------------------
|
14197
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14198
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14199
|
+
------------------------------------------------------------------
|
14200
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
14201
|
+
------------------------------------------------------------------
|
14202
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14203
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14204
|
+
----------------------------------------------------------------------
|
14205
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14206
|
+
----------------------------------------------------------------------
|
14207
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14208
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14209
|
+
-------------------------------------------------------------------------
|
14210
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14211
|
+
-------------------------------------------------------------------------
|
14212
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14213
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14214
|
+
--------------------------------------------------------------------------------------------------
|
14215
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
14216
|
+
--------------------------------------------------------------------------------------------------
|
14217
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14218
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14219
|
+
---------------------------------------------------------------------
|
14220
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
14221
|
+
---------------------------------------------------------------------
|
14222
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14223
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14224
|
+
--------------------------------------------------------------------------------
|
14225
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
14226
|
+
--------------------------------------------------------------------------------
|
14227
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14228
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14229
|
+
--------------------------------------------------------------------------
|
14230
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14231
|
+
--------------------------------------------------------------------------
|
14232
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14233
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14234
|
+
----------------------------------------------------------------------
|
14235
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
14236
|
+
----------------------------------------------------------------------
|
14237
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14238
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14239
|
+
---------------------------------------------------------------------
|
14240
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
14241
|
+
---------------------------------------------------------------------
|
14242
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14243
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:15:47.580557"], ["updated_at", "2021-06-16 08:15:47.580557"]]
|
14244
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14245
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14246
|
+
[1m[36mEmployee Update (0.6ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-16 08:15:47.582564"], ["id", 162]]
|
14247
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14248
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14249
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14250
|
+
-----------------------------------------------------------------
|
14251
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
14252
|
+
-----------------------------------------------------------------
|
14253
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14254
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14255
|
+
--------------------------------------------------------------------------
|
14256
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
14257
|
+
--------------------------------------------------------------------------
|
14258
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14259
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14260
|
+
-----------------------------------------------------------
|
14261
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
14262
|
+
-----------------------------------------------------------
|
14263
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14264
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14265
|
+
------------------------------------------------------------------------
|
14266
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
14267
|
+
------------------------------------------------------------------------
|
14268
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14269
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14270
|
+
-----------------------------------------------------------------------
|
14271
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
14272
|
+
-----------------------------------------------------------------------
|
14273
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14274
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14275
|
+
---------------------------------------------------------------------------------------------------------
|
14276
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
14277
|
+
---------------------------------------------------------------------------------------------------------
|
14278
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14279
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14280
|
+
----------------------------------------------------------------------------------------------------------------
|
14281
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
14282
|
+
----------------------------------------------------------------------------------------------------------------
|
14283
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14284
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14285
|
+
------------------------------------------------------------------------------------------
|
14286
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
14287
|
+
------------------------------------------------------------------------------------------
|
14288
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14289
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14290
|
+
-------------------------------------------
|
14291
|
+
EmployeeTest: test_invalid_day_raises_error
|
14292
|
+
-------------------------------------------
|
14293
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14294
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14295
|
+
-------------------------------------------------------------------------
|
14296
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
14297
|
+
-------------------------------------------------------------------------
|
14298
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14299
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:15:47.592568"], ["updated_at", "2021-06-16 08:15:47.592568"]]
|
14300
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14301
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14302
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14303
|
+
-------------------------------------------------------------------------------------------------------------------
|
14304
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
14305
|
+
-------------------------------------------------------------------------------------------------------------------
|
14306
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14307
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14308
|
+
----------------------------------------------
|
14309
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
14310
|
+
----------------------------------------------
|
14311
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14312
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14313
|
+
----------------------------------------------------------------------------------------------
|
14314
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
14315
|
+
----------------------------------------------------------------------------------------------
|
14316
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14317
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14318
|
+
-----------------------------------------------------------
|
14319
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
14320
|
+
-----------------------------------------------------------
|
14321
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14322
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14323
|
+
--------------------------------------------
|
14324
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
14325
|
+
--------------------------------------------
|
14326
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14327
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14328
|
+
---------------------------------------------------------------------
|
14329
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
14330
|
+
---------------------------------------------------------------------
|
14331
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14332
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14333
|
+
-----------------------------------------------------------------------------------
|
14334
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
14335
|
+
-----------------------------------------------------------------------------------
|
14336
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14337
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14338
|
+
----------------------------------------------
|
14339
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
14340
|
+
----------------------------------------------
|
14341
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14342
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14343
|
+
----------------------------------------------------
|
14344
|
+
EmployeesControllerTest: test_should_update_employee
|
14345
|
+
----------------------------------------------------
|
14346
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14347
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.657141"], ["updated_at", "2021-06-16 08:15:47.657141"]]
|
14348
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14349
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14350
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.658569"], ["updated_at", "2021-06-16 08:15:47.658569"]]
|
14351
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14352
|
+
Processing by EmployeesController#update as HTML
|
14353
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"164"}
|
14354
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 164], ["LIMIT", 1]]
|
14355
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14356
|
+
[1m[36mEmployee Update (0.3ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-16 08:15:47.669378"], ["id", 164]]
|
14357
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14358
|
+
Redirected to http://test.host/employees/164
|
14359
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.9ms | Allocations: 2057)
|
14360
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 164], ["LIMIT", 1]]
|
14361
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14362
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14363
|
+
--------------------------------------------------
|
14364
|
+
EmployeesControllerTest: test_should_show_employee
|
14365
|
+
--------------------------------------------------
|
14366
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14367
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.674107"], ["updated_at", "2021-06-16 08:15:47.674107"]]
|
14368
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14369
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14370
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.675389"], ["updated_at", "2021-06-16 08:15:47.675389"]]
|
14371
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14372
|
+
Processing by EmployeesController#show as HTML
|
14373
|
+
Parameters: {"id"=>"166"}
|
14374
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 166], ["LIMIT", 1]]
|
14375
|
+
Rendering employees/show.html.erb within layouts/application
|
14376
|
+
Rendered employees/show.html.erb within layouts/application (Duration: 1.2ms | Allocations: 428)
|
14377
|
+
Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.2ms | Allocations: 6553)
|
14378
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14379
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14380
|
+
----------------------------------------------------
|
14381
|
+
EmployeesControllerTest: test_should_create_employee
|
14382
|
+
----------------------------------------------------
|
14383
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14384
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.692967"], ["updated_at", "2021-06-16 08:15:47.692967"]]
|
14385
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14386
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14387
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.694181"], ["updated_at", "2021-06-16 08:15:47.694181"]]
|
14388
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14389
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14390
|
+
Processing by EmployeesController#create as HTML
|
14391
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
14392
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14393
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-16 08:15:47.697234"], ["updated_at", "2021-06-16 08:15:47.697234"]]
|
14394
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14395
|
+
Redirected to http://test.host/employees/170
|
14396
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms | Allocations: 862)
|
14397
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14398
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14399
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
14400
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14401
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14402
|
+
---------------------------------------------
|
14403
|
+
EmployeesControllerTest: test_should_get_edit
|
14404
|
+
---------------------------------------------
|
14405
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14406
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.701687"], ["updated_at", "2021-06-16 08:15:47.701687"]]
|
14407
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14408
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14409
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.702717"], ["updated_at", "2021-06-16 08:15:47.702717"]]
|
14410
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14411
|
+
Processing by EmployeesController#edit as HTML
|
14412
|
+
Parameters: {"id"=>"171"}
|
14413
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 171], ["LIMIT", 1]]
|
14414
|
+
Rendering employees/edit.html.erb within layouts/application
|
14415
|
+
Rendered employees/_form.html.erb (Duration: 4.1ms | Allocations: 2190)
|
14416
|
+
Rendered employees/edit.html.erb within layouts/application (Duration: 5.0ms | Allocations: 2557)
|
14417
|
+
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms | Allocations: 4066)
|
14418
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14419
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14420
|
+
--------------------------------------------
|
14421
|
+
EmployeesControllerTest: test_should_get_new
|
14422
|
+
--------------------------------------------
|
14423
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14424
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.713568"], ["updated_at", "2021-06-16 08:15:47.713568"]]
|
14425
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14426
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14427
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.715646"], ["updated_at", "2021-06-16 08:15:47.715646"]]
|
14428
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14429
|
+
Processing by EmployeesController#new as HTML
|
14430
|
+
Rendering employees/new.html.erb within layouts/application
|
14431
|
+
Rendered employees/_form.html.erb (Duration: 1.7ms | Allocations: 1274)
|
14432
|
+
Rendered employees/new.html.erb within layouts/application (Duration: 2.2ms | Allocations: 1452)
|
14433
|
+
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms | Allocations: 2858)
|
14434
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14435
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14436
|
+
--------------------------------------------------------------
|
14437
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
14438
|
+
--------------------------------------------------------------
|
14439
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14440
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.725590"], ["updated_at", "2021-06-16 08:15:47.725590"]]
|
14441
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14442
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14443
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.726995"], ["updated_at", "2021-06-16 08:15:47.726995"]]
|
14444
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14445
|
+
Processing by EmployeesController#edit as HTML
|
14446
|
+
Parameters: {"id"=>"175"}
|
14447
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 175], ["LIMIT", 1]]
|
14448
|
+
Rendering employees/edit.html.erb within layouts/application
|
14449
|
+
Rendered employees/_form.html.erb (Duration: 1.5ms | Allocations: 1291)
|
14450
|
+
Rendered employees/edit.html.erb within layouts/application (Duration: 1.7ms | Allocations: 1392)
|
14451
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms | Allocations: 2766)
|
14452
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14453
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14454
|
+
----------------------------------------------
|
14455
|
+
EmployeesControllerTest: test_should_get_index
|
14456
|
+
----------------------------------------------
|
14457
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14458
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.734830"], ["updated_at", "2021-06-16 08:15:47.734830"]]
|
14459
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14460
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14461
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.736099"], ["updated_at", "2021-06-16 08:15:47.736099"]]
|
14462
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14463
|
+
Processing by EmployeesController#index as HTML
|
14464
|
+
Rendering employees/index.html.erb within layouts/application
|
14465
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
14466
|
+
Rendered employees/index.html.erb within layouts/application (Duration: 1.4ms | Allocations: 734)
|
14467
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms | Allocations: 2112)
|
14468
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14469
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14470
|
+
-----------------------------------------------------
|
14471
|
+
EmployeesControllerTest: test_should_destroy_employee
|
14472
|
+
-----------------------------------------------------
|
14473
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14474
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:15:47.741777"], ["updated_at", "2021-06-16 08:15:47.741777"]]
|
14475
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14476
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14477
|
+
[1m[36mEmployee Create (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:15:47.742780"], ["updated_at", "2021-06-16 08:15:47.742780"]]
|
14478
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14479
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14480
|
+
Processing by EmployeesController#destroy as HTML
|
14481
|
+
Parameters: {"id"=>"179"}
|
14482
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 179], ["LIMIT", 1]]
|
14483
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14484
|
+
[1m[36mEmployee Destroy (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 179]]
|
14485
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14486
|
+
Redirected to http://test.host/employees
|
14487
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms | Allocations: 427)
|
14488
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14489
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14490
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14491
|
+
------------------------------------------------------------------------------------------
|
14492
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
14493
|
+
------------------------------------------------------------------------------------------
|
14494
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14495
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14496
|
+
-----------------------------------------------------------------------------------------------
|
14497
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
14498
|
+
-----------------------------------------------------------------------------------------------
|
14499
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14500
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14501
|
+
-----------------------------------------------------------------------------------------
|
14502
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
14503
|
+
-----------------------------------------------------------------------------------------
|
14504
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14505
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14506
|
+
---------------------------------------------------------------------------------
|
14507
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
14508
|
+
---------------------------------------------------------------------------------
|
14509
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14510
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14511
|
+
-------------------------------------------------------------------------------
|
14512
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
14513
|
+
-------------------------------------------------------------------------------
|
14514
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14515
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14516
|
+
---------------------------------------------------------------------------------
|
14517
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
14518
|
+
---------------------------------------------------------------------------------
|
14519
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14520
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14521
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
14522
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
14523
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
14524
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14525
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14526
|
+
------------------------------------------
|
14527
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
14528
|
+
------------------------------------------
|
14529
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14530
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14531
|
+
---------------------------------------------------------------
|
14532
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
14533
|
+
---------------------------------------------------------------
|
14534
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14535
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14536
|
+
----------------------------------------------------------------------------------
|
14537
|
+
GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied
|
14538
|
+
----------------------------------------------------------------------------------
|
14539
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14540
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14541
|
+
---------------------------------------------------------------------------------------
|
14542
|
+
GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified
|
14543
|
+
---------------------------------------------------------------------------------------
|
14544
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14545
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14546
|
+
----------------------------------------------------------------------------------------
|
14547
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message,_with_autogenerated_`id`
|
14548
|
+
----------------------------------------------------------------------------------------
|
14549
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14550
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14551
|
+
-------------------------------------------------------------
|
14552
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
14553
|
+
-------------------------------------------------------------
|
14554
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14555
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14556
|
+
-------------------------------------------------------
|
14557
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
14558
|
+
-------------------------------------------------------
|
14559
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14560
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14561
|
+
---------------------------------------------------------------
|
14562
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
14563
|
+
---------------------------------------------------------------
|
14564
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14565
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14566
|
+
--------------------------------------------------------
|
14567
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
14568
|
+
--------------------------------------------------------
|
14569
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14570
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14571
|
+
-----------------------------------------------------------
|
14572
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
14573
|
+
-----------------------------------------------------------
|
14574
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14575
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14576
|
+
------------------------------------------------------------------------------------------------------
|
14577
|
+
GovUkDateFieldsTest: test_fieldset_without_explicit_`id`_passed_in_the_options_(will_be_autogenerated)
|
14578
|
+
------------------------------------------------------------------------------------------------------
|
14579
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14580
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14581
|
+
-------------------------------------------------------------------------------
|
14582
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
14583
|
+
-------------------------------------------------------------------------------
|
14584
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14585
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14586
|
+
-------------------------------------
|
14587
|
+
GovUkDateFieldsTest: test_squash_html
|
14588
|
+
-------------------------------------
|
14589
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14590
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
14591
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14592
|
+
----------------------------------------------
|
14593
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
14594
|
+
----------------------------------------------
|
14595
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14596
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14597
|
+
--------------------------------------------------------------------------
|
14598
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14599
|
+
--------------------------------------------------------------------------
|
14600
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14601
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14602
|
+
--------------------------------------------------------------------------------
|
14603
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
14604
|
+
--------------------------------------------------------------------------------
|
14605
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14606
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14607
|
+
----------------------------------------------------------------------
|
14608
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
14609
|
+
----------------------------------------------------------------------
|
14610
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14611
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14612
|
+
---------------------------------------------------------------------
|
14613
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
14614
|
+
---------------------------------------------------------------------
|
14615
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14616
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14617
|
+
-------------------------------------------------------------------------
|
14618
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14619
|
+
-------------------------------------------------------------------------
|
14620
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14621
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14622
|
+
--------------------------------------------------------------------------------------------------
|
14623
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
14624
|
+
--------------------------------------------------------------------------------------------------
|
14625
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14626
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14627
|
+
---------------------------------------------------------------------------------
|
14628
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
14629
|
+
---------------------------------------------------------------------------------
|
14630
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14631
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14632
|
+
-----------------------------------------------------------------------------------------
|
14633
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
14634
|
+
-----------------------------------------------------------------------------------------
|
14635
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14636
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14637
|
+
------------------------------------------------------------------------------------------
|
14638
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
14639
|
+
------------------------------------------------------------------------------------------
|
14640
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14641
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14642
|
+
-------------------------------------------------------------------------------
|
14643
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
14644
|
+
-------------------------------------------------------------------------------
|
14645
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14646
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14647
|
+
-----------------------------------------------------------------------------------------------
|
14648
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
14649
|
+
-----------------------------------------------------------------------------------------------
|
14650
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14651
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14652
|
+
---------------------------------------------------------------------------------
|
14653
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
14654
|
+
---------------------------------------------------------------------------------
|
14655
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14656
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14657
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
14658
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
14659
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
14660
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14661
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14662
|
+
------------------------------------------------
|
14663
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
14664
|
+
------------------------------------------------
|
14665
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14666
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14667
|
+
----------------------------------------------
|
14668
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
14669
|
+
----------------------------------------------
|
14670
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14671
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14672
|
+
-------------------------------------------
|
14673
|
+
GovUkDateFieldsTest: test_date_fields_error
|
14674
|
+
-------------------------------------------
|
14675
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14676
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14677
|
+
----------------------------------------------------------------
|
14678
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
14679
|
+
----------------------------------------------------------------
|
14680
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14681
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14682
|
+
-----------------------------------------------------------------------
|
14683
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
14684
|
+
-----------------------------------------------------------------------
|
14685
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14686
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14687
|
+
-----------------------------------------------------------------------------------------------
|
14688
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
14689
|
+
-----------------------------------------------------------------------------------------------
|
14690
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14691
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14692
|
+
------------------------------------------------------------------------------------------------
|
14693
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
14694
|
+
------------------------------------------------------------------------------------------------
|
14695
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14696
|
+
[1m[36mDirector Create (0.6ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:42:50.207115"], ["updated_at", "2021-06-16 08:42:50.207115"]]
|
14697
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14698
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14699
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14700
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14701
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14702
|
+
-----------------------------------------------------------------
|
14703
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
14704
|
+
-----------------------------------------------------------------
|
14705
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14706
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14707
|
+
-----------------------------------------------------------------------
|
14708
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
14709
|
+
-----------------------------------------------------------------------
|
14710
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14711
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14712
|
+
--------------------------------------------------------------------------
|
14713
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
14714
|
+
--------------------------------------------------------------------------
|
14715
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14716
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14717
|
+
---------------------------------------------------------------------
|
14718
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
14719
|
+
---------------------------------------------------------------------
|
14720
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14721
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14722
|
+
-------------------------------------------
|
14723
|
+
EmployeeTest: test_invalid_day_raises_error
|
14724
|
+
-------------------------------------------
|
14725
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14726
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14727
|
+
---------------------------------------------------------------------
|
14728
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
14729
|
+
---------------------------------------------------------------------
|
14730
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14731
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14732
|
+
-------------------------------------------------------------------------------------------------------------------
|
14733
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
14734
|
+
-------------------------------------------------------------------------------------------------------------------
|
14735
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14736
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14737
|
+
----------------------------------------------
|
14738
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
14739
|
+
----------------------------------------------
|
14740
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14741
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14742
|
+
-----------------------------------------------------------------------------------
|
14743
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
14744
|
+
-----------------------------------------------------------------------------------
|
14745
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14746
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14747
|
+
--------------------------------------------
|
14748
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
14749
|
+
--------------------------------------------
|
14750
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14751
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14752
|
+
-----------------------------------------------------------
|
14753
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
14754
|
+
-----------------------------------------------------------
|
14755
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14756
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14757
|
+
----------------------------------------------------------------------------------------------
|
14758
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
14759
|
+
----------------------------------------------------------------------------------------------
|
14760
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14761
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14762
|
+
------------------------------------------------------------------------
|
14763
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
14764
|
+
------------------------------------------------------------------------
|
14765
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14766
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14767
|
+
---------------------------------------------------------------------
|
14768
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
14769
|
+
---------------------------------------------------------------------
|
14770
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14771
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:42:50.223872"], ["updated_at", "2021-06-16 08:42:50.223872"]]
|
14772
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14773
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14774
|
+
[1m[36mEmployee Update (0.4ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2021-06-16 08:42:50.225224"], ["id", 182]]
|
14775
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14776
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14777
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14778
|
+
-------------------------------------------------------------------------
|
14779
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
14780
|
+
-------------------------------------------------------------------------
|
14781
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14782
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2021-06-16 08:42:50.228902"], ["updated_at", "2021-06-16 08:42:50.228902"]]
|
14783
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14784
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14785
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
14786
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14787
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14788
|
+
---------------------------------------------------------------------------------------------------------
|
14789
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
14790
|
+
---------------------------------------------------------------------------------------------------------
|
14791
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14792
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14793
|
+
----------------------------------------------------------------------------------------------------------------
|
14794
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
14795
|
+
----------------------------------------------------------------------------------------------------------------
|
14796
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14797
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14798
|
+
--------------------------------------------------------------------------
|
14799
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
14800
|
+
--------------------------------------------------------------------------
|
14801
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14802
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14803
|
+
-----------------------------------------------------------
|
14804
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
14805
|
+
-----------------------------------------------------------
|
14806
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14807
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14808
|
+
------------------------------------------------------------------------------------------
|
14809
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
14810
|
+
------------------------------------------------------------------------------------------
|
14811
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14812
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14813
|
+
-----------------------------------------------------------------
|
14814
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
14815
|
+
-----------------------------------------------------------------
|
14816
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14817
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14818
|
+
-----------------------------------------------------------------------
|
14819
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
14820
|
+
-----------------------------------------------------------------------
|
14821
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14822
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14823
|
+
------------------------------------------------------------------
|
14824
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
14825
|
+
------------------------------------------------------------------
|
14826
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14827
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14828
|
+
----------------------------------------------------------------------
|
14829
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
14830
|
+
----------------------------------------------------------------------
|
14831
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14832
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14833
|
+
-------------------------------------------------------------------------------------------------------
|
14834
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
14835
|
+
-------------------------------------------------------------------------------------------------------
|
14836
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14837
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14838
|
+
----------------------------------------------
|
14839
|
+
EmployeesControllerTest: test_should_get_index
|
14840
|
+
----------------------------------------------
|
14841
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14842
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.251838"], ["updated_at", "2021-06-16 08:42:50.251838"]]
|
14843
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14844
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14845
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.253273"], ["updated_at", "2021-06-16 08:42:50.253273"]]
|
14846
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14847
|
+
Processing by EmployeesController#index as HTML
|
14848
|
+
Rendering employees/index.html.erb within layouts/application
|
14849
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
14850
|
+
Rendered employees/index.html.erb within layouts/application (2.7ms)
|
14851
|
+
Completed 200 OK in 49ms (Views: 48.3ms | ActiveRecord: 0.2ms)
|
14852
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
14853
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14854
|
+
--------------------------------------------------
|
14855
|
+
EmployeesControllerTest: test_should_show_employee
|
14856
|
+
--------------------------------------------------
|
14857
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14858
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.307846"], ["updated_at", "2021-06-16 08:42:50.307846"]]
|
14859
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14860
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14861
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.309329"], ["updated_at", "2021-06-16 08:42:50.309329"]]
|
14862
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14863
|
+
Processing by EmployeesController#show as HTML
|
14864
|
+
Parameters: {"id"=>"186"}
|
14865
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 186], ["LIMIT", 1]]
|
14866
|
+
Rendering employees/show.html.erb within layouts/application
|
14867
|
+
Rendered employees/show.html.erb within layouts/application (0.7ms)
|
14868
|
+
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms)
|
14869
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
14870
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14871
|
+
----------------------------------------------------
|
14872
|
+
EmployeesControllerTest: test_should_create_employee
|
14873
|
+
----------------------------------------------------
|
14874
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14875
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.318820"], ["updated_at", "2021-06-16 08:42:50.318820"]]
|
14876
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14877
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14878
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.320276"], ["updated_at", "2021-06-16 08:42:50.320276"]]
|
14879
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14880
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14881
|
+
Processing by EmployeesController#create as HTML
|
14882
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
14883
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14884
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2021-06-16 08:42:50.328023"], ["updated_at", "2021-06-16 08:42:50.328023"]]
|
14885
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14886
|
+
Redirected to http://test.host/employees/190
|
14887
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
14888
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14889
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14890
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
14891
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14892
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14893
|
+
-----------------------------------------------------
|
14894
|
+
EmployeesControllerTest: test_should_destroy_employee
|
14895
|
+
-----------------------------------------------------
|
14896
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14897
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.332924"], ["updated_at", "2021-06-16 08:42:50.332924"]]
|
14898
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14899
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14900
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.334049"], ["updated_at", "2021-06-16 08:42:50.334049"]]
|
14901
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14902
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14903
|
+
Processing by EmployeesController#destroy as HTML
|
14904
|
+
Parameters: {"id"=>"191"}
|
14905
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 191], ["LIMIT", 1]]
|
14906
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14907
|
+
[1m[36mEmployee Destroy (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 191]]
|
14908
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14909
|
+
Redirected to http://test.host/employees
|
14910
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
|
14911
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
14912
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
14913
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14914
|
+
----------------------------------------------------
|
14915
|
+
EmployeesControllerTest: test_should_update_employee
|
14916
|
+
----------------------------------------------------
|
14917
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14918
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.340083"], ["updated_at", "2021-06-16 08:42:50.340083"]]
|
14919
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14920
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14921
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.341819"], ["updated_at", "2021-06-16 08:42:50.341819"]]
|
14922
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14923
|
+
Processing by EmployeesController#update as HTML
|
14924
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"193"}
|
14925
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 193], ["LIMIT", 1]]
|
14926
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14927
|
+
[1m[36mEmployee Update (0.6ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2021-06-16 08:42:50.345557"], ["id", 193]]
|
14928
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14929
|
+
Redirected to http://test.host/employees/193
|
14930
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
|
14931
|
+
[1m[36mEmployee Load (0.4ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 193], ["LIMIT", 1]]
|
14932
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14933
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14934
|
+
---------------------------------------------
|
14935
|
+
EmployeesControllerTest: test_should_get_edit
|
14936
|
+
---------------------------------------------
|
14937
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14938
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.351003"], ["updated_at", "2021-06-16 08:42:50.351003"]]
|
14939
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14940
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14941
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.357325"], ["updated_at", "2021-06-16 08:42:50.357325"]]
|
14942
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14943
|
+
Processing by EmployeesController#edit as HTML
|
14944
|
+
Parameters: {"id"=>"195"}
|
14945
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 195], ["LIMIT", 1]]
|
14946
|
+
Rendering employees/edit.html.erb within layouts/application
|
14947
|
+
Rendered employees/_form.html.erb (7.3ms)
|
14948
|
+
Rendered employees/edit.html.erb within layouts/application (8.3ms)
|
14949
|
+
Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms)
|
14950
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
14951
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
14952
|
+
--------------------------------------------
|
14953
|
+
EmployeesControllerTest: test_should_get_new
|
14954
|
+
--------------------------------------------
|
14955
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14956
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.371683"], ["updated_at", "2021-06-16 08:42:50.371683"]]
|
14957
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14958
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14959
|
+
[1m[36mEmployee Create (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.373090"], ["updated_at", "2021-06-16 08:42:50.373090"]]
|
14960
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14961
|
+
Processing by EmployeesController#new as HTML
|
14962
|
+
Rendering employees/new.html.erb within layouts/application
|
14963
|
+
Rendered employees/_form.html.erb (2.4ms)
|
14964
|
+
Rendered employees/new.html.erb within layouts/application (3.1ms)
|
14965
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
14966
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
14967
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14968
|
+
--------------------------------------------------------------
|
14969
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
14970
|
+
--------------------------------------------------------------
|
14971
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14972
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2021-06-16 08:42:50.382433"], ["updated_at", "2021-06-16 08:42:50.382433"]]
|
14973
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14974
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14975
|
+
[1m[36mEmployee Create (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2021-06-16 08:42:50.383842"], ["updated_at", "2021-06-16 08:42:50.383842"]]
|
14976
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14977
|
+
Processing by EmployeesController#edit as HTML
|
14978
|
+
Parameters: {"id"=>"199"}
|
14979
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 199], ["LIMIT", 1]]
|
14980
|
+
Rendering employees/edit.html.erb within layouts/application
|
14981
|
+
Rendered employees/_form.html.erb (2.1ms)
|
14982
|
+
Rendered employees/edit.html.erb within layouts/application (2.3ms)
|
14983
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)
|
14984
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|