teabag 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +59 -59
- data/app/assets/javascripts/teabag-jasmine.js +229 -190
- data/app/assets/javascripts/teabag-mocha.js +217 -192
- data/app/assets/javascripts/teabag-qunit.js +3023 -0
- data/app/assets/javascripts/teabag/base/reporters/console.coffee +42 -26
- data/app/assets/javascripts/teabag/base/reporters/html.coffee +4 -3
- data/app/assets/javascripts/teabag/base/reporters/html/base_view.coffee +49 -0
- data/app/assets/javascripts/teabag/base/reporters/html/suite_view.coffee +1 -1
- data/app/assets/javascripts/teabag/base/runner.coffee +10 -0
- data/app/assets/javascripts/teabag/base/teabag.coffee +15 -1
- data/app/assets/javascripts/teabag/jasmine.coffee +53 -5
- data/app/assets/javascripts/teabag/mocha.coffee +51 -5
- data/app/assets/javascripts/teabag/mocha/reporters/console.coffee +3 -2
- data/app/assets/javascripts/teabag/qunit.coffee +61 -0
- data/app/assets/javascripts/teabag/qunit/reporters/console.coffee +25 -0
- data/app/assets/javascripts/teabag/qunit/reporters/html.coffee +80 -0
- data/app/helpers/teabag/spec_helper.rb +6 -14
- data/lib/generators/teabag/install/templates/initializer.rb +2 -1
- data/lib/teabag/configuration.rb +15 -4
- data/lib/teabag/console.rb +5 -11
- data/lib/teabag/drivers/base_driver.rb +10 -0
- data/lib/teabag/{phantomjs → drivers/phantomjs}/runner.coffee +0 -0
- data/lib/teabag/drivers/phantomjs_driver.rb +25 -0
- data/lib/teabag/drivers/selenium_driver.rb +29 -0
- data/lib/teabag/formatters/base_formatter.rb +4 -2
- data/lib/teabag/formatters/{progress_formatter.rb → dot_formatter.rb} +5 -5
- data/lib/teabag/formatters/swayze_or_oprah_formatter.rb +1 -1
- data/lib/teabag/formatters/tap_y_formatter.rb +85 -0
- data/lib/teabag/result.rb +18 -29
- data/lib/teabag/runner.rb +2 -2
- data/lib/teabag/version.rb +1 -1
- data/spec/dummy/config/initializers/teabag.rb +6 -0
- data/spec/dummy/log/development.log +87684 -0
- data/spec/dummy/log/test.log +556 -0
- data/spec/dummy/tmp/cache/assets/C13/B50/sprockets%2F431452d41e5087d2211162d23c63789b +0 -0
- data/spec/dummy/tmp/cache/assets/C18/F90/sprockets%2F369a3f720404378b4162541fd432742d +0 -0
- data/spec/dummy/tmp/cache/assets/C2B/5D0/sprockets%2F98606f6051a5fc71379af24236793353 +0 -0
- data/spec/dummy/tmp/cache/assets/C4E/9B0/sprockets%2Fa807397434c9262c3d62da3e91152184 +0 -0
- data/spec/dummy/tmp/cache/assets/C59/250/sprockets%2Fa80d3fe493d2476e58c4323996064512 +0 -0
- data/spec/dummy/tmp/cache/assets/C72/150/sprockets%2F4194031b4b51b6422c14ac697e3455e5 +0 -0
- data/spec/dummy/tmp/cache/assets/C75/D50/sprockets%2F5302968a40e08d2c011aa38666d273f6 +0 -0
- data/spec/dummy/tmp/cache/assets/C78/6B0/sprockets%2F173640f631a07f48c900a9c2923c825b +0 -0
- data/spec/dummy/tmp/cache/assets/C78/EF0/sprockets%2F65f827a4a5337d05d037845161b41ab8 +0 -0
- data/spec/dummy/tmp/cache/assets/C78/F80/sprockets%2F9161622ddd251097a4ab816b8220984c +0 -0
- data/spec/dummy/tmp/cache/assets/C7A/EC0/sprockets%2F5c16e4214f5662e1b27932a57c43491b +0 -0
- data/spec/dummy/tmp/cache/assets/C7C/AC0/sprockets%2F29124be1160817c61bb4878894b2ba55 +0 -0
- data/spec/dummy/tmp/cache/assets/C80/F70/sprockets%2Fe5c9811902c221828ea647978f000be3 +0 -0
- data/spec/dummy/tmp/cache/assets/C87/2C0/sprockets%2F60f61c07481249fc7922664609fcae52 +0 -0
- data/spec/dummy/tmp/cache/assets/C89/700/sprockets%2F259935a7704fef0069303ea63fa89408 +0 -0
- data/spec/dummy/tmp/cache/assets/C8A/460/sprockets%2F77bffd9959420103906722b404ae8d59 +0 -0
- data/spec/dummy/tmp/cache/assets/C91/FA0/sprockets%2F2eb81283f5789ae91a69344552db3856 +0 -0
- data/spec/dummy/tmp/cache/assets/C97/430/sprockets%2Fc049582fd1c9178ff983323f75326f64 +0 -0
- data/spec/dummy/tmp/cache/assets/CA2/F50/sprockets%2F86094c5d1b6399d614b0771a3a0a45b0 +0 -0
- data/spec/dummy/tmp/cache/assets/CA6/2F0/sprockets%2F20040c18b672e4c4d2731a2a929d8b97 +0 -0
- data/spec/dummy/tmp/cache/assets/CA9/C40/sprockets%2F932b7e2cd1e067289ab51190800814df +0 -0
- data/spec/dummy/tmp/cache/assets/CAA/0C0/sprockets%2F057b0ce384f16d9202ae84473436cc35 +0 -0
- data/spec/dummy/tmp/cache/assets/CAD/410/sprockets%2F651414e5c7e86f05c5108dc71626b25c +0 -0
- data/spec/dummy/tmp/cache/assets/CB4/6A0/sprockets%2F7373c9de844b711519cb49c4f1b16822 +0 -0
- data/spec/dummy/tmp/cache/assets/CBB/FA0/sprockets%2F74922109263bdc965b2e9567eec6d154 +0 -0
- data/spec/dummy/tmp/cache/assets/CBF/630/sprockets%2F707d2db81468088470d476abff35388d +0 -0
- data/spec/dummy/tmp/cache/assets/CCE/C50/sprockets%2Fe12774c2fea852112414bb379a71f31a +0 -0
- data/spec/dummy/tmp/cache/assets/CD3/460/sprockets%2F7f3f6802b0b309ed142d0b671c9640c4 +0 -0
- data/spec/dummy/tmp/cache/assets/CD9/DD0/sprockets%2Fe5774759168a731da1c1149ecf0e1b03 +0 -0
- data/spec/dummy/tmp/cache/assets/CDB/630/sprockets%2Ffd1626fe1016c81d57217f7f80c4370a +0 -0
- data/spec/dummy/tmp/cache/assets/CE0/090/sprockets%2F48d5d35ae87d0723318b8bc257fa2237 +0 -0
- data/spec/dummy/tmp/cache/assets/CE1/250/sprockets%2Ffdc680a0d4383d37910e549ca96f5303 +0 -0
- data/spec/dummy/tmp/cache/assets/CE1/730/sprockets%2Fa1678837061e18d7aca0286c07acf676 +0 -0
- data/spec/dummy/tmp/cache/assets/CE2/190/sprockets%2F0183b0f4e9f302b8677a5e31c45c89c5 +0 -0
- data/spec/dummy/tmp/cache/assets/CE3/1F0/sprockets%2Fe69a515d3a9d14c669be8871012a7d07 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/270/sprockets%2F2c98152560d18470fec8cf4c6829b4d0 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/7C0/sprockets%2Fa03a2c86ce6724be8542295e1cf24798 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/600/sprockets%2F7656791c172a6037cfffe2a226291c9e +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/A60/sprockets%2Ff58eee249aa167d23f8220087bb46684 +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/9E0/sprockets%2F135480d497ed7e4884462dc0ef0b80d7 +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/090/sprockets%2F55dcd7ace406b77208c380d496e37864 +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/680/sprockets%2F67f0794ef8c0576d5c7da34f4437305a +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/B40/sprockets%2F1150bf8d912aa100a132251eefaf6045 +0 -0
- data/spec/dummy/tmp/cache/assets/CEC/360/sprockets%2F264b79dde726b36d63fee272a0609469 +0 -0
- data/spec/dummy/tmp/cache/assets/CF4/6F0/sprockets%2Fed96f92571224b862b84d7078b86ded3 +0 -0
- data/spec/dummy/tmp/cache/assets/CF7/F10/sprockets%2F8c45854ebd195b52cc42bf3f99996336 +0 -0
- data/spec/dummy/tmp/cache/assets/CF8/780/sprockets%2F8845b81ff27cdb57c835836c9f91a265 +0 -0
- data/spec/dummy/tmp/cache/assets/CFB/210/sprockets%2F9104695bfbf9a9d4b94382e6e90487a9 +0 -0
- data/spec/dummy/tmp/cache/assets/CFC/380/sprockets%2Fa7443cbd671446a589867dd5f4a4f989 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/110/sprockets%2F6a6353b7723a8b21708e0fbfe04bd422 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/F60/sprockets%2F42e279b52511c47d26c0adb125fd04e8 +0 -0
- data/spec/dummy/tmp/cache/assets/D03/630/sprockets%2F5d8da32dba6a7be70426a1d554773701 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/170/sprockets%2F76ab1dc02e6c7618852708a1e05a2df3 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/480/sprockets%2F8bd8f10500b21d2f9d94e4cd1401c936 +0 -0
- data/spec/dummy/tmp/cache/assets/D05/8D0/sprockets%2F319f8f235f452343f1ebf03cb262d23d +0 -0
- data/spec/dummy/tmp/cache/assets/D09/BF0/sprockets%2F9e6bca5d26f50d9484385d51ba04312c +0 -0
- data/spec/dummy/tmp/cache/assets/D0B/740/sprockets%2F781d3a2f0449451e9f35c5b0e3e2df41 +0 -0
- data/spec/dummy/tmp/cache/assets/D0E/570/sprockets%2F90fe371bf8091e88a712124d9cdae260 +0 -0
- data/spec/dummy/tmp/cache/assets/D11/D60/sprockets%2F06d6413e059dbac9a62155639ce88d2c +0 -0
- data/spec/dummy/tmp/cache/assets/D11/F80/sprockets%2F48961522f6cd1a15f2fe6e25f1b37a75 +0 -0
- data/spec/dummy/tmp/cache/assets/D12/F40/sprockets%2Fb6f95541e256c15909e0a5a5fbf2a359 +0 -0
- data/spec/dummy/tmp/cache/assets/D15/750/sprockets%2F8effdd3e668a4036260a3e370f3b6657 +0 -0
- data/spec/dummy/tmp/cache/assets/D17/710/sprockets%2Ffa49fb6823d466e79a195e0cd71340c5 +0 -0
- data/spec/dummy/tmp/cache/assets/D18/AF0/sprockets%2F8f572049bd1b0a6f1eb3d27979c9544c +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/D30/sprockets%2F815a5177e9edba0c5c996182ef1b3675 +0 -0
- data/spec/dummy/tmp/cache/assets/D1B/730/sprockets%2Fcf6ce779d043d29aae915f599a413380 +0 -0
- data/spec/dummy/tmp/cache/assets/D1D/560/sprockets%2F1ca784ee7ba1922465147e7f8963eae5 +0 -0
- data/spec/dummy/tmp/cache/assets/D21/AD0/sprockets%2Fd471d7f687f61341d8b19efc41f39e44 +0 -0
- data/spec/dummy/tmp/cache/assets/D22/D70/sprockets%2Fe86ae12aa97067ed78aa94489484ec16 +0 -0
- data/spec/dummy/tmp/cache/assets/D2F/810/sprockets%2F1a2674b7dac8ff403c23a570475ace04 +0 -0
- data/spec/dummy/tmp/cache/assets/D30/480/sprockets%2Feb011f46c64dbefb1f7e21329644c240 +0 -0
- data/spec/dummy/tmp/cache/assets/D31/9C0/sprockets%2Fbd102a4f5a4985c3519dd6ab0295a1c6 +0 -0
- data/spec/dummy/tmp/cache/assets/D34/920/sprockets%2Ff234dd736ae50902ba074c526ca8f0c8 +0 -0
- data/spec/dummy/tmp/cache/assets/D35/7C0/sprockets%2Ff536a2606eaf7d542c0985104cb62baf +0 -0
- data/spec/dummy/tmp/cache/assets/D35/F00/sprockets%2F8e7f22358123b7eb5e21d17f442ce0ac +0 -0
- data/spec/dummy/tmp/cache/assets/D37/810/sprockets%2F99de576ce6ad42b5c0843fc21c2025b2 +0 -0
- data/spec/dummy/tmp/cache/assets/D37/FF0/sprockets%2F96841ca4cfae32c515077f3f5fc303b2 +0 -0
- data/spec/dummy/tmp/cache/assets/D39/BE0/sprockets%2Fdb727091cf3e4b4f6126c48b6063ef0b +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108 +0 -0
- data/spec/dummy/tmp/cache/assets/D3D/EC0/sprockets%2F1aa82cb99ef076aea10d472b30a58979 +0 -0
- data/spec/dummy/tmp/cache/assets/D3F/3A0/sprockets%2F1b3734b358a405ca6f92455db8e4b5ff +0 -0
- data/spec/dummy/tmp/cache/assets/D45/C30/sprockets%2Fcc744877558178a3adb77c441cadce70 +0 -0
- data/spec/dummy/tmp/cache/assets/D48/160/sprockets%2F32bae66fd65ce3643efb543182f2e885 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/1F0/sprockets%2F773b56f87127c6605e7d1d3faf2b6af6 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/A10/sprockets%2Fc4656bd995a6f297c26d19b13aadb963 +0 -0
- data/spec/dummy/tmp/cache/assets/D4A/A50/sprockets%2Fb95795be8b937dab770541e27ddb2e70 +0 -0
- data/spec/dummy/tmp/cache/assets/D4C/840/sprockets%2F7732c94884c24e764f109ce2deb2a9ed +0 -0
- data/spec/dummy/tmp/cache/assets/D50/D70/sprockets%2Fe2a3e6c95b11e0801a4eebae3a026026 +0 -0
- data/spec/dummy/tmp/cache/assets/D51/400/sprockets%2Ff5e433d8a31e80985b75ce598de236be +0 -0
- data/spec/dummy/tmp/cache/assets/D58/870/sprockets%2F3cef1ff075a050004b74ffa13c8c4f02 +0 -0
- data/spec/dummy/tmp/cache/assets/D5B/9D0/sprockets%2F9c18c0aa5bbe1b323c5022c98aa09f29 +0 -0
- data/spec/dummy/tmp/cache/assets/D5B/E60/sprockets%2F167c229432f74a17b4c6a07bbb19aacb +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/710/sprockets%2F9427d05cee2caa721241a25a9af1d08f +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/CC0/sprockets%2Faa8bf6de211f2765b0a26f112b971f0c +0 -0
- data/spec/dummy/tmp/cache/assets/D5E/FA0/sprockets%2Fc81c371ae2d61a6aa1708262fba79e0d +0 -0
- data/spec/dummy/tmp/cache/assets/D60/060/sprockets%2Fe8a6ac51dd42491eaa2f9130c1629eb2 +0 -0
- data/spec/dummy/tmp/cache/assets/D61/1F0/sprockets%2F0c7a6176d2fc4db00bb9a74d36380fe1 +0 -0
- data/spec/dummy/tmp/cache/assets/D61/BD0/sprockets%2Ff96fcad988ca7fea975e538c27188605 +0 -0
- data/spec/dummy/tmp/cache/assets/D65/AD0/sprockets%2Fcc53fff930eaf306c15c4568cb265c00 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/030/sprockets%2Fb8b36ba6104c8dbe6297b4e61e6d33b1 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/BC0/sprockets%2F35d2c2b45981ade5a2db2a9c7f37a615 +0 -0
- data/spec/dummy/tmp/cache/assets/D69/F90/sprockets%2F6a0795b7b38bd7e6142cd1b88211dade +0 -0
- data/spec/dummy/tmp/cache/assets/D6A/950/sprockets%2F429b1806cb7580ebf29f9a12c33cbea6 +0 -0
- data/spec/dummy/tmp/cache/assets/D6C/9C0/sprockets%2Fd66bdf546164ba223e20f56b5591ddfd +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/530/sprockets%2F8d52dee91bff01a8a2306d8a7c9152a9 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/DA0/sprockets%2Fac936bf40b42227a2bf9d474ae9ec149 +0 -0
- data/spec/dummy/tmp/cache/assets/D6F/310/sprockets%2F624b651d37f7ec0c563c446fbf8afb32 +0 -0
- data/spec/dummy/tmp/cache/assets/D71/A70/sprockets%2F4f10f5dd56c8a3ff78c460bbe3723a39 +0 -0
- data/spec/dummy/tmp/cache/assets/D72/C10/sprockets%2Ffbdb5250837c5cb856f464eb2cb3388b +0 -0
- data/spec/dummy/tmp/cache/assets/D73/5D0/sprockets%2F5c8608f3e25d077fa3df8cd32b50c37f +0 -0
- data/spec/dummy/tmp/cache/assets/D73/C00/sprockets%2F9cf4bfb486e4ab461e3f275a3d974c30 +0 -0
- data/spec/dummy/tmp/cache/assets/D77/B30/sprockets%2F946cf2f17c7eb41037f9ee08ad67ec40 +0 -0
- data/spec/dummy/tmp/cache/assets/D78/2F0/sprockets%2F3c61f8915b8f717b1de788e6ecad122c +0 -0
- data/spec/dummy/tmp/cache/assets/D78/870/sprockets%2F8f3a7d4fcd104fa8e47f552f6630a49e +0 -0
- data/spec/dummy/tmp/cache/assets/D7E/C10/sprockets%2F747c98c3cc7494a62dd882752adffb2b +0 -0
- data/spec/dummy/tmp/cache/assets/D7F/6C0/sprockets%2F77fe714bfff7e409a9d838cdf126700c +0 -0
- data/spec/dummy/tmp/cache/assets/D84/560/sprockets%2Ff09b671d3f5f8a48d7fa28e2c59ca389 +0 -0
- data/spec/dummy/tmp/cache/assets/D85/5D0/sprockets%2Fde362e334a475cfca1a30fa5b713b43a +0 -0
- data/spec/dummy/tmp/cache/assets/D8C/520/sprockets%2F221cd58a042baac534d27e4cfedc1188 +0 -0
- data/spec/dummy/tmp/cache/assets/D92/C00/sprockets%2F63c8bb5e2b2d9db4a2ed16f056a234c6 +0 -0
- data/spec/dummy/tmp/cache/assets/D97/520/sprockets%2Fea2442ae4caddb758dfb1964c601b476 +0 -0
- data/spec/dummy/tmp/cache/assets/D9C/510/sprockets%2Fab9bab3574dac2d1681189debb7d8255 +0 -0
- data/spec/dummy/tmp/cache/assets/D9D/440/sprockets%2F869f9acc13b88cf15a31d24a0ac3f6f6 +0 -0
- data/spec/dummy/tmp/cache/assets/D9E/CB0/sprockets%2Ff0efe0ab6bd753a8bb4481e46243d77f +0 -0
- data/spec/dummy/tmp/cache/assets/DA0/330/sprockets%2Fcbbb4de706387d50f48a72ee6c9c1b80 +0 -0
- data/spec/dummy/tmp/cache/assets/DA5/0A0/sprockets%2F7a4b5928cec69ab65afff309a04d6b47 +0 -0
- data/spec/dummy/tmp/cache/assets/DA6/D80/sprockets%2F8702dce2e6b9879a6add309e92ace2f0 +0 -0
- data/spec/dummy/tmp/cache/assets/DA8/C50/sprockets%2F0810627fddce930a399fc60d3be97fed +0 -0
- data/spec/dummy/tmp/cache/assets/DAA/1E0/sprockets%2F412dd3bd3026759a3f6ffe8cf9e7b93a +0 -0
- data/spec/dummy/tmp/cache/assets/DAA/2B0/sprockets%2Fe0c5d93fa08d139e198bfe47cd42b99a +0 -0
- data/spec/dummy/tmp/cache/assets/DAE/4E0/sprockets%2F88cc3ab99c608879dd56164dbcc2ccb7 +0 -0
- data/spec/dummy/tmp/cache/assets/DAE/6C0/sprockets%2F77c7a8676aeefa73156c55dfcf51cc46 +0 -0
- data/spec/dummy/tmp/cache/assets/DAF/5B0/sprockets%2F780e81d97e4eefcce73e0b82a5b1859d +0 -0
- data/spec/dummy/tmp/cache/assets/DB3/5D0/sprockets%2Fce1d4d75832c9bdeafd869f6f7b61725 +0 -0
- data/spec/dummy/tmp/cache/assets/DB5/040/sprockets%2F9a9da5df88713663b9fbc945facca891 +0 -0
- data/spec/dummy/tmp/cache/assets/DB5/860/sprockets%2Facf25fab3016425a0e03c9d190fd4eac +0 -0
- data/spec/dummy/tmp/cache/assets/DB9/220/sprockets%2Fd2dc4f59e70e73984997ffca8ad7f4a0 +0 -0
- data/spec/dummy/tmp/cache/assets/DC3/230/sprockets%2Fdf52e72eb73be91eccc60182191aed0b +0 -0
- data/spec/dummy/tmp/cache/assets/DC3/AC0/sprockets%2Fe29911eb34fdf4b710dd0d2c2cf24bc9 +0 -0
- data/spec/dummy/tmp/cache/assets/DC4/860/sprockets%2Fa01a3cf460ff15daae0f928d0f85f52e +0 -0
- data/spec/dummy/tmp/cache/assets/DC7/A10/sprockets%2F84a8af0fcbf401864e1ae5bf092cba94 +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/620/sprockets%2F27a68cf9fe11fb1b6326d11eba7e76cb +0 -0
- data/spec/dummy/tmp/cache/assets/DCD/EB0/sprockets%2F4f77f509126ecbced7ea2a5ab290c8d4 +0 -0
- data/spec/dummy/tmp/cache/assets/DE3/6C0/sprockets%2F51c550cc1b3b021aa9aede66a5a36aff +0 -0
- data/spec/dummy/tmp/cache/assets/DE4/140/sprockets%2F139e4ab85d1aacb22c115fa136afdc8a +0 -0
- data/spec/dummy/tmp/cache/assets/DEB/110/sprockets%2F2dbdab0ce5babca645cdb5780004f875 +0 -0
- data/spec/dummy/tmp/cache/assets/DF1/1B0/sprockets%2F2b1bc202f9a338942edbccb2cfef0d67 +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 +0 -0
- data/spec/dummy/tmp/cache/assets/DF7/E10/sprockets%2F25e4253aba9a9adcefb72552fb1ff0c8 +0 -0
- data/spec/dummy/tmp/cache/assets/DF9/AD0/sprockets%2Fc700afd7cee3fe9d7ff8352b213b2c4a +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/C20/sprockets%2Fd9178ad7e3b401c9fceafd64ea2b50d6 +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/C30/sprockets%2Fb50a07cb30b0bd0eec8e98e5de79d65d +0 -0
- data/spec/dummy/tmp/cache/assets/E02/6E0/sprockets%2F63d6a5cdb8cefa64ef76b5c6e0fd3720 +0 -0
- data/spec/dummy/tmp/cache/assets/E08/5A0/sprockets%2Fe7148db8eea925c3c9f1ee340d53ceff +0 -0
- data/spec/dummy/tmp/cache/assets/E08/BB0/sprockets%2Fefac99af1af28543aef6fb607faa4973 +0 -0
- data/spec/dummy/tmp/cache/assets/E08/F20/sprockets%2F4fc5cdcd6974efe7adfe809b30bd6513 +0 -0
- data/spec/dummy/tmp/cache/assets/E16/D30/sprockets%2Fd69469e6e7439baacd8df989c0fdacc2 +0 -0
- data/spec/dummy/tmp/cache/assets/E17/EF0/sprockets%2Fa291ad64a26afd055dfadabbdf03f154 +0 -0
- data/spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 +0 -0
- data/spec/dummy/tmp/cache/assets/E6E/260/sprockets%2Fd9f8ab8b91ef582cc6c99a3ba0dedfe6 +0 -0
- data/spec/dummy/tmp/cache/assets/F79/360/sprockets%2F0ce035fefee5ebdabc8efabfbdbd6ee4 +0 -0
- data/spec/javascripts/teabag/base/reporters/console_spec.coffee +69 -42
- data/spec/javascripts/teabag/base/reporters/html/base_view_spec.coffee +88 -0
- data/spec/javascripts/teabag/base/reporters/html_spec.coffee +218 -218
- data/spec/javascripts/teabag/base/runner_spec.coffee +22 -0
- data/spec/javascripts/teabag/base/teabag_spec.coffee +1 -1
- data/spec/javascripts/teabag/jasmine/models_jspec.coffee +101 -0
- data/spec/javascripts/teabag/jasmine/runner_jspec.coffee +1 -1
- data/spec/javascripts/teabag/mocha/models_mspec.coffee +95 -0
- data/spec/javascripts/teabag/mocha/reporters/console_mspec.coffee +4 -0
- data/spec/javascripts/teabag/mocha/runner_mspec.coffee +7 -7
- data/spec/javascripts/teabag/phantomjs/runner_spec.coffee +5 -5
- data/spec/teabag/configuration_spec.rb +2 -2
- data/spec/teabag/console_spec.rb +5 -17
- data/spec/teabag/drivers/phantomjs_driver_spec.rb +29 -0
- data/spec/teabag/drivers/selenium_driver_spec.rb +60 -0
- data/spec/teabag/formatters/{progress_formatter_spec.rb → dot_formatter_spec.rb} +14 -14
- data/spec/teabag/formatters/tap_y_formatter_spec.rb +190 -0
- data/spec/teabag/result_spec.rb +12 -42
- data/spec/teabag/runner_spec.rb +12 -6
- data/vendor/assets/javascripts/qunit-1.10.0.MIT.LICENSE +1 -0
- data/vendor/assets/javascripts/qunit-1.10.0.js +1977 -0
- metadata +161 -11
- data/app/assets/javascripts/teabag/base/reporters.coffee +0 -105
- data/spec/javascripts/teabag/base/reporters_spec.coffee +0 -267
@@ -5019,6 +5019,8 @@
|
|
5019
5019
|
|
5020
5020
|
Teabag.console = window.console;
|
5021
5021
|
|
5022
|
+
Teabag.messages = [];
|
5023
|
+
|
5022
5024
|
Teabag.execute = function() {
|
5023
5025
|
if (this.defer) {
|
5024
5026
|
this.defer = false;
|
@@ -5027,6 +5029,19 @@
|
|
5027
5029
|
return new Teabag.Runner();
|
5028
5030
|
};
|
5029
5031
|
|
5032
|
+
Teabag.log = function() {
|
5033
|
+
var _ref;
|
5034
|
+
this.messages.push(arguments[0]);
|
5035
|
+
return (_ref = this.console).log.apply(_ref, arguments);
|
5036
|
+
};
|
5037
|
+
|
5038
|
+
Teabag.getMessages = function() {
|
5039
|
+
var messages;
|
5040
|
+
messages = this.messages;
|
5041
|
+
this.messages = [];
|
5042
|
+
return messages;
|
5043
|
+
};
|
5044
|
+
|
5030
5045
|
return Teabag;
|
5031
5046
|
|
5032
5047
|
})();
|
@@ -5060,108 +5075,27 @@
|
|
5060
5075
|
return params;
|
5061
5076
|
};
|
5062
5077
|
|
5063
|
-
Runner.prototype.
|
5064
|
-
|
5065
|
-
|
5066
|
-
|
5067
|
-
})();
|
5068
|
-
|
5069
|
-
}).call(this);
|
5070
|
-
(function() {
|
5071
|
-
|
5072
|
-
Teabag.Reporters.NormalizedSpec = (function() {
|
5073
|
-
|
5074
|
-
function NormalizedSpec(spec) {
|
5075
|
-
var _base, _base1;
|
5076
|
-
this.spec = spec;
|
5077
|
-
this.fullDescription = (typeof (_base = this.spec).getFullName === "function" ? _base.getFullName() : void 0) || this.spec.fullTitle();
|
5078
|
-
this.description || (this.description = this.spec.description || this.spec.title);
|
5079
|
-
this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
|
5080
|
-
this.parent = this.spec.suite || this.spec.parent;
|
5081
|
-
this.suiteName = (typeof (_base1 = this.parent).getFullName === "function" ? _base1.getFullName() : void 0) || this.parent.fullTitle();
|
5082
|
-
this.viewId = this.spec.viewId;
|
5083
|
-
this.pending = this.spec.pending;
|
5084
|
-
}
|
5085
|
-
|
5086
|
-
NormalizedSpec.prototype.errors = function() {
|
5087
|
-
var item, _i, _len, _ref, _results;
|
5088
|
-
if (this.spec.err) {
|
5089
|
-
return [this.spec.err];
|
5090
|
-
}
|
5091
|
-
if (!this.spec.results) {
|
5092
|
-
return [];
|
5093
|
-
}
|
5094
|
-
_ref = this.spec.results().getItems();
|
5095
|
-
_results = [];
|
5096
|
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
5097
|
-
item = _ref[_i];
|
5098
|
-
if (item.passed()) {
|
5099
|
-
continue;
|
5100
|
-
}
|
5101
|
-
_results.push({
|
5102
|
-
message: item.message,
|
5103
|
-
stack: item.trace.stack
|
5104
|
-
});
|
5105
|
-
}
|
5106
|
-
return _results;
|
5107
|
-
};
|
5108
|
-
|
5109
|
-
NormalizedSpec.prototype.result = function() {
|
5110
|
-
var results, skipped, status;
|
5111
|
-
status = "failed";
|
5112
|
-
if (this.spec.results) {
|
5113
|
-
results = this.spec.results();
|
5114
|
-
if (results.passed()) {
|
5115
|
-
status = "passed";
|
5116
|
-
}
|
5117
|
-
skipped = results.skipped;
|
5078
|
+
Runner.prototype.getReporter = function() {
|
5079
|
+
if (this.params["reporter"]) {
|
5080
|
+
return Teabag.Reporters[this.params["reporter"]];
|
5118
5081
|
} else {
|
5119
|
-
if (
|
5120
|
-
|
5121
|
-
}
|
5122
|
-
skipped = this.spec.state === "skipped";
|
5123
|
-
}
|
5124
|
-
if (this.spec.pending) {
|
5125
|
-
status = "pending";
|
5126
|
-
}
|
5127
|
-
return {
|
5128
|
-
status: status,
|
5129
|
-
skipped: skipped
|
5130
|
-
};
|
5131
|
-
};
|
5132
|
-
|
5133
|
-
return NormalizedSpec;
|
5134
|
-
|
5135
|
-
})();
|
5136
|
-
|
5137
|
-
Teabag.Reporters.NormalizedSuite = (function() {
|
5138
|
-
|
5139
|
-
function NormalizedSuite(suite) {
|
5140
|
-
var _base;
|
5141
|
-
this.suite = suite;
|
5142
|
-
this.fullDescription = (typeof (_base = this.suite).getFullName === "function" ? _base.getFullName() : void 0) || this.suite.fullTitle();
|
5143
|
-
this.description = this.suite.description || this.suite.title;
|
5144
|
-
this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
|
5145
|
-
this.parent = this.getParent();
|
5146
|
-
this.viewId = this.suite.viewId;
|
5147
|
-
}
|
5148
|
-
|
5149
|
-
NormalizedSuite.prototype.getParent = function() {
|
5150
|
-
if (this.suite.parent) {
|
5151
|
-
if (this.suite.parent.root) {
|
5152
|
-
return null;
|
5082
|
+
if (window.navigator.userAgent.match(/PhantomJS/)) {
|
5083
|
+
return Teabag.Reporters.Console;
|
5153
5084
|
} else {
|
5154
|
-
return
|
5085
|
+
return Teabag.Reporters.HTML;
|
5155
5086
|
}
|
5156
|
-
} else {
|
5157
|
-
return this.suite.parentSuite;
|
5158
5087
|
}
|
5159
5088
|
};
|
5160
5089
|
|
5161
|
-
|
5090
|
+
Runner.prototype.setup = function() {};
|
5091
|
+
|
5092
|
+
return Runner;
|
5162
5093
|
|
5163
5094
|
})();
|
5164
5095
|
|
5096
|
+
}).call(this);
|
5097
|
+
(function() {
|
5098
|
+
|
5165
5099
|
Teabag.Reporters.BaseView = (function() {
|
5166
5100
|
|
5167
5101
|
function BaseView() {
|
@@ -5200,7 +5134,7 @@
|
|
5200
5134
|
BaseView.prototype.setText = function(id, value) {
|
5201
5135
|
var el;
|
5202
5136
|
el = this.findEl(id);
|
5203
|
-
return el.
|
5137
|
+
return el.innerHTML = value;
|
5204
5138
|
};
|
5205
5139
|
|
5206
5140
|
BaseView.prototype.setHtml = function(id, value, add) {
|
@@ -5233,93 +5167,6 @@
|
|
5233
5167
|
|
5234
5168
|
})();
|
5235
5169
|
|
5236
|
-
}).call(this);
|
5237
|
-
(function() {
|
5238
|
-
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
5239
|
-
|
5240
|
-
Teabag.Reporters.Console = (function() {
|
5241
|
-
|
5242
|
-
function Console() {
|
5243
|
-
this.reportRunnerResults = __bind(this.reportRunnerResults, this);
|
5244
|
-
this.start = new Teabag.Date().getTime();
|
5245
|
-
}
|
5246
|
-
|
5247
|
-
Console.prototype.reportSpecResults = function(spec) {
|
5248
|
-
var result;
|
5249
|
-
this.spec = new Teabag.Reporters.NormalizedSpec(spec);
|
5250
|
-
result = this.spec.result();
|
5251
|
-
switch (result.status) {
|
5252
|
-
case "pending":
|
5253
|
-
return this.trackPending();
|
5254
|
-
case "failed":
|
5255
|
-
return this.trackFailure();
|
5256
|
-
default:
|
5257
|
-
return this.log({
|
5258
|
-
type: "spec",
|
5259
|
-
suite: this.spec.suiteName,
|
5260
|
-
spec: this.spec.description,
|
5261
|
-
status: result.status,
|
5262
|
-
skipped: result.skipped,
|
5263
|
-
full_description: this.spec.fullDescription
|
5264
|
-
});
|
5265
|
-
}
|
5266
|
-
};
|
5267
|
-
|
5268
|
-
Console.prototype.trackPending = function() {
|
5269
|
-
var result;
|
5270
|
-
result = this.spec.result();
|
5271
|
-
return this.log({
|
5272
|
-
type: "spec",
|
5273
|
-
suite: this.spec.suiteName,
|
5274
|
-
spec: this.spec.description,
|
5275
|
-
status: result.status,
|
5276
|
-
skipped: result.skipped,
|
5277
|
-
full_description: this.spec.fullDescription
|
5278
|
-
});
|
5279
|
-
};
|
5280
|
-
|
5281
|
-
Console.prototype.trackFailure = function() {
|
5282
|
-
var error, result, _i, _len, _ref, _results;
|
5283
|
-
result = this.spec.result();
|
5284
|
-
_ref = this.spec.errors();
|
5285
|
-
_results = [];
|
5286
|
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
5287
|
-
error = _ref[_i];
|
5288
|
-
_results.push(this.log({
|
5289
|
-
type: "spec",
|
5290
|
-
suite: this.spec.suiteName,
|
5291
|
-
spec: this.spec.description,
|
5292
|
-
status: result.status,
|
5293
|
-
skipped: result.skipped,
|
5294
|
-
full_description: this.spec.fullDescription,
|
5295
|
-
link: this.spec.link,
|
5296
|
-
message: error.message,
|
5297
|
-
trace: error.stack || error.message || "Stack Trace Unavailable"
|
5298
|
-
}));
|
5299
|
-
}
|
5300
|
-
return _results;
|
5301
|
-
};
|
5302
|
-
|
5303
|
-
Console.prototype.reportRunnerResults = function() {
|
5304
|
-
this.log({
|
5305
|
-
type: "results",
|
5306
|
-
elapsed: ((new Teabag.Date().getTime() - this.start) / 1000).toFixed(5)
|
5307
|
-
});
|
5308
|
-
return Teabag.finished = true;
|
5309
|
-
};
|
5310
|
-
|
5311
|
-
Console.prototype.log = function(obj) {
|
5312
|
-
if (obj == null) {
|
5313
|
-
obj = {};
|
5314
|
-
}
|
5315
|
-
obj["_teabag"] = true;
|
5316
|
-
return Teabag.console.log(JSON.stringify(obj));
|
5317
|
-
};
|
5318
|
-
|
5319
|
-
return Console;
|
5320
|
-
|
5321
|
-
})();
|
5322
|
-
|
5323
5170
|
}).call(this);
|
5324
5171
|
(function() {
|
5325
5172
|
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
@@ -5386,7 +5233,7 @@
|
|
5386
5233
|
};
|
5387
5234
|
|
5388
5235
|
HTML.prototype.reportSpecStarting = function(spec) {
|
5389
|
-
spec = new Teabag.
|
5236
|
+
spec = new Teabag.Spec(spec);
|
5390
5237
|
if (this.config["build-full-report"]) {
|
5391
5238
|
this.reportView = new Teabag.Reporters.HTML.SpecView(spec, this);
|
5392
5239
|
}
|
@@ -5430,7 +5277,7 @@
|
|
5430
5277
|
|
5431
5278
|
HTML.prototype.updateStatus = function(spec) {
|
5432
5279
|
var elapsed, result, _ref, _ref1;
|
5433
|
-
spec = new Teabag.
|
5280
|
+
spec = new Teabag.Spec(spec);
|
5434
5281
|
result = spec.result();
|
5435
5282
|
if (result.skipped || result.status === "pending") {
|
5436
5283
|
this.updateStat("skipped", this.total.skipped += 1);
|
@@ -5514,7 +5361,7 @@
|
|
5514
5361
|
} else {
|
5515
5362
|
date = new Teabag.Date();
|
5516
5363
|
date.setDate(date.getDate() + 365);
|
5517
|
-
return document.cookie = "" + name + "=" + (escape(JSON.stringify(value))) + "; path
|
5364
|
+
return document.cookie = "" + name + "=" + (escape(JSON.stringify(value))) + "; path=\"/\"; expires=" + (date.toUTCString()) + ";";
|
5518
5365
|
}
|
5519
5366
|
};
|
5520
5367
|
|
@@ -5756,7 +5603,7 @@
|
|
5756
5603
|
this.views = this.reporter.views;
|
5757
5604
|
this.suite.viewId = viewId += 1;
|
5758
5605
|
this.views.suites[this.suite.viewId] = this;
|
5759
|
-
this.suite = new Teabag.
|
5606
|
+
this.suite = new Teabag.Suite(suite);
|
5760
5607
|
SuiteView.__super__.constructor.apply(this, arguments);
|
5761
5608
|
}
|
5762
5609
|
|
@@ -5804,6 +5651,119 @@
|
|
5804
5651
|
|
5805
5652
|
})(Teabag.Reporters.BaseView);
|
5806
5653
|
|
5654
|
+
}).call(this);
|
5655
|
+
(function() {
|
5656
|
+
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
5657
|
+
|
5658
|
+
Teabag.Reporters.Console = (function() {
|
5659
|
+
|
5660
|
+
function Console() {
|
5661
|
+
this.reportRunnerResults = __bind(this.reportRunnerResults, this);
|
5662
|
+
this.start = new Teabag.Date();
|
5663
|
+
this.suites = {};
|
5664
|
+
}
|
5665
|
+
|
5666
|
+
Console.prototype.reportRunnerStarting = function(runner) {
|
5667
|
+
return this.log({
|
5668
|
+
type: "runner",
|
5669
|
+
total: runner.total || runner.specs().length,
|
5670
|
+
start: JSON.parse(JSON.stringify(this.start))
|
5671
|
+
});
|
5672
|
+
};
|
5673
|
+
|
5674
|
+
Console.prototype.reportSuites = function() {
|
5675
|
+
var index, suite, _i, _len, _ref, _results;
|
5676
|
+
_ref = this.spec.getParents();
|
5677
|
+
_results = [];
|
5678
|
+
for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
|
5679
|
+
suite = _ref[index];
|
5680
|
+
if (this.suites[suite.fullDescription]) {
|
5681
|
+
continue;
|
5682
|
+
}
|
5683
|
+
this.suites[suite.fullDescription] = true;
|
5684
|
+
_results.push(this.log({
|
5685
|
+
type: "suite",
|
5686
|
+
label: suite.description,
|
5687
|
+
level: index
|
5688
|
+
}));
|
5689
|
+
}
|
5690
|
+
return _results;
|
5691
|
+
};
|
5692
|
+
|
5693
|
+
Console.prototype.reportSpecResults = function(spec) {
|
5694
|
+
var result;
|
5695
|
+
this.spec = new Teabag.Spec(spec);
|
5696
|
+
result = this.spec.result();
|
5697
|
+
this.reportSuites();
|
5698
|
+
switch (result.status) {
|
5699
|
+
case "pending":
|
5700
|
+
return this.trackPending();
|
5701
|
+
case "failed":
|
5702
|
+
return this.trackFailure();
|
5703
|
+
default:
|
5704
|
+
return this.log({
|
5705
|
+
type: "spec",
|
5706
|
+
suite: this.spec.suiteName,
|
5707
|
+
label: this.spec.description,
|
5708
|
+
status: result.status,
|
5709
|
+
skipped: result.skipped
|
5710
|
+
});
|
5711
|
+
}
|
5712
|
+
};
|
5713
|
+
|
5714
|
+
Console.prototype.trackPending = function() {
|
5715
|
+
var result;
|
5716
|
+
result = this.spec.result();
|
5717
|
+
return this.log({
|
5718
|
+
type: "spec",
|
5719
|
+
suite: this.spec.suiteName,
|
5720
|
+
label: this.spec.description,
|
5721
|
+
status: result.status,
|
5722
|
+
skipped: result.skipped
|
5723
|
+
});
|
5724
|
+
};
|
5725
|
+
|
5726
|
+
Console.prototype.trackFailure = function() {
|
5727
|
+
var error, result, _i, _len, _ref, _results;
|
5728
|
+
result = this.spec.result();
|
5729
|
+
_ref = this.spec.errors();
|
5730
|
+
_results = [];
|
5731
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
5732
|
+
error = _ref[_i];
|
5733
|
+
_results.push(this.log({
|
5734
|
+
type: "spec",
|
5735
|
+
suite: this.spec.suiteName,
|
5736
|
+
label: this.spec.description,
|
5737
|
+
status: result.status,
|
5738
|
+
skipped: result.skipped,
|
5739
|
+
link: this.spec.link,
|
5740
|
+
message: error.message,
|
5741
|
+
trace: error.stack || error.message || "Stack Trace Unavailable"
|
5742
|
+
}));
|
5743
|
+
}
|
5744
|
+
return _results;
|
5745
|
+
};
|
5746
|
+
|
5747
|
+
Console.prototype.reportRunnerResults = function() {
|
5748
|
+
this.log({
|
5749
|
+
type: "result",
|
5750
|
+
elapsed: ((new Teabag.Date().getTime() - this.start.getTime()) / 1000).toFixed(5)
|
5751
|
+
});
|
5752
|
+
return Teabag.finished = true;
|
5753
|
+
};
|
5754
|
+
|
5755
|
+
Console.prototype.log = function(obj) {
|
5756
|
+
if (obj == null) {
|
5757
|
+
obj = {};
|
5758
|
+
}
|
5759
|
+
obj["_teabag"] = true;
|
5760
|
+
return Teabag.log(JSON.stringify(obj));
|
5761
|
+
};
|
5762
|
+
|
5763
|
+
return Console;
|
5764
|
+
|
5765
|
+
})();
|
5766
|
+
|
5807
5767
|
}).call(this);
|
5808
5768
|
(function() {
|
5809
5769
|
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
@@ -5817,15 +5777,15 @@
|
|
5817
5777
|
function Console(runner) {
|
5818
5778
|
this.reportSpecResults = __bind(this.reportSpecResults, this);
|
5819
5779
|
Console.__super__.constructor.apply(this, arguments);
|
5780
|
+
this.reportRunnerStarting(runner);
|
5820
5781
|
runner.on("fail", this.reportSpecResults);
|
5821
5782
|
runner.on("test end", this.reportSpecResults);
|
5822
5783
|
runner.on("end", this.reportRunnerResults);
|
5823
5784
|
}
|
5824
5785
|
|
5825
5786
|
Console.prototype.reportSpecResults = function(spec, err) {
|
5826
|
-
this.spec = spec;
|
5827
5787
|
if (err) {
|
5828
|
-
|
5788
|
+
spec.err = err;
|
5829
5789
|
return;
|
5830
5790
|
}
|
5831
5791
|
return Console.__super__.reportSpecResults.apply(this, arguments);
|
@@ -5907,11 +5867,7 @@
|
|
5907
5867
|
|
5908
5868
|
Runner.prototype.setup = function() {
|
5909
5869
|
var reporter;
|
5910
|
-
|
5911
|
-
reporter = Teabag.Reporters.Console;
|
5912
|
-
} else {
|
5913
|
-
reporter = Teabag.Reporters.HTML;
|
5914
|
-
}
|
5870
|
+
reporter = this.getReporter();
|
5915
5871
|
reporter.filter = this.params["grep"];
|
5916
5872
|
return env.setup({
|
5917
5873
|
reporter: reporter
|
@@ -5922,4 +5878,73 @@
|
|
5922
5878
|
|
5923
5879
|
})(Teabag.Runner);
|
5924
5880
|
|
5881
|
+
Teabag.Spec = (function() {
|
5882
|
+
|
5883
|
+
function Spec(spec) {
|
5884
|
+
this.spec = spec;
|
5885
|
+
this.fullDescription = this.spec.fullTitle();
|
5886
|
+
this.description = this.spec.title;
|
5887
|
+
this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
|
5888
|
+
this.parent = this.spec.parent;
|
5889
|
+
this.suiteName = this.parent.fullTitle();
|
5890
|
+
this.viewId = this.spec.viewId;
|
5891
|
+
this.pending = this.spec.pending;
|
5892
|
+
}
|
5893
|
+
|
5894
|
+
Spec.prototype.errors = function() {
|
5895
|
+
if (!this.spec.err) {
|
5896
|
+
return [];
|
5897
|
+
}
|
5898
|
+
return [this.spec.err];
|
5899
|
+
};
|
5900
|
+
|
5901
|
+
Spec.prototype.getParents = function() {
|
5902
|
+
var parent;
|
5903
|
+
if (this.parents) {
|
5904
|
+
return this.parents;
|
5905
|
+
}
|
5906
|
+
this.parents || (this.parents = []);
|
5907
|
+
parent = this.parent;
|
5908
|
+
while (parent) {
|
5909
|
+
parent = new Teabag.Suite(parent);
|
5910
|
+
this.parents.unshift(parent);
|
5911
|
+
parent = parent.parent;
|
5912
|
+
}
|
5913
|
+
return this.parents;
|
5914
|
+
};
|
5915
|
+
|
5916
|
+
Spec.prototype.result = function() {
|
5917
|
+
var status;
|
5918
|
+
status = "failed";
|
5919
|
+
if (this.spec.state === "passed" || this.spec.state === "skipped") {
|
5920
|
+
status = "passed";
|
5921
|
+
}
|
5922
|
+
if (this.spec.pending) {
|
5923
|
+
status = "pending";
|
5924
|
+
}
|
5925
|
+
return {
|
5926
|
+
status: status,
|
5927
|
+
skipped: this.spec.state === "skipped"
|
5928
|
+
};
|
5929
|
+
};
|
5930
|
+
|
5931
|
+
return Spec;
|
5932
|
+
|
5933
|
+
})();
|
5934
|
+
|
5935
|
+
Teabag.Suite = (function() {
|
5936
|
+
|
5937
|
+
function Suite(suite) {
|
5938
|
+
this.suite = suite;
|
5939
|
+
this.fullDescription = this.suite.fullTitle();
|
5940
|
+
this.description = this.suite.title;
|
5941
|
+
this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
|
5942
|
+
this.parent = this.suite.parent.root ? null : this.suite.parent;
|
5943
|
+
this.viewId = this.suite.viewId;
|
5944
|
+
}
|
5945
|
+
|
5946
|
+
return Suite;
|
5947
|
+
|
5948
|
+
})();
|
5949
|
+
|
5925
5950
|
}).call(this);
|