teabag 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +8 -5
- data/app/assets/javascripts/teabag-angular.js +27402 -0
- data/app/assets/javascripts/teabag-jasmine.js +7 -1
- data/app/assets/javascripts/teabag-mocha.js +7 -1
- data/app/assets/javascripts/teabag-qunit.js +7 -1
- data/app/assets/javascripts/teabag/angular.coffee +53 -0
- data/app/assets/javascripts/teabag/angular/reporters/console.coffee +11 -0
- data/app/assets/javascripts/teabag/angular/reporters/html.coffee +21 -0
- data/app/assets/javascripts/teabag/base/fixture.coffee +2 -0
- data/app/assets/javascripts/teabag/base/reporters/html.coffee +2 -0
- data/app/assets/javascripts/teabag/base/reporters/html/template.coffee +1 -1
- data/app/helpers/teabag/spec_helper.rb +12 -4
- data/lib/generators/teabag/install/install_generator.rb +50 -48
- data/lib/generators/teabag/install/templates/jasmine/initializer.rb +3 -3
- data/lib/generators/teabag/install/templates/jasmine/spec_helper.coffee +3 -3
- data/lib/generators/teabag/install/templates/jasmine/spec_helper.js +4 -3
- data/lib/generators/teabag/install/templates/mocha/initializer.rb +3 -3
- data/lib/generators/teabag/install/templates/mocha/spec_helper.coffee +3 -3
- data/lib/generators/teabag/install/templates/mocha/spec_helper.js +3 -3
- data/lib/generators/teabag/install/templates/qunit/initializer.rb +3 -3
- data/lib/generators/teabag/install/templates/qunit/test_helper.coffee +3 -3
- data/lib/generators/teabag/install/templates/qunit/test_helper.js +4 -3
- data/lib/teabag/configuration.rb +1 -1
- data/lib/teabag/drivers/phantomjs_driver.rb +1 -1
- data/lib/teabag/version.rb +1 -1
- data/spec/dummy/config/initializers/teabag.rb +6 -0
- data/spec/dummy/log/development.log +11889 -0
- data/spec/dummy/log/test.log +2059 -0
- data/spec/dummy/tmp/cache/assets/BF4/B40/sprockets%2F92609006738520485335fd716556ebd0 +0 -0
- data/spec/dummy/tmp/cache/assets/C1A/DF0/sprockets%2F1d3658f2666932cb25f50615a3174233 +0 -0
- data/spec/dummy/tmp/cache/assets/C35/A30/sprockets%2F29906bf540f7d2e081088494b2554989 +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/F80/sprockets%2F9161622ddd251097a4ab816b8220984c +0 -0
- data/spec/dummy/tmp/cache/assets/C7A/EC0/sprockets%2F5c16e4214f5662e1b27932a57c43491b +0 -0
- data/spec/dummy/tmp/cache/assets/C86/740/sprockets%2Ffd688405fa188d153670253b18f155e4 +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/C94/F30/sprockets%2Fd181f58147769936cde4797a1a3580f3 +0 -0
- data/spec/dummy/tmp/cache/assets/C9D/E90/sprockets%2F3045c9533f179d3e1c805d163ed002a0 +0 -0
- data/spec/dummy/tmp/cache/assets/CA3/C80/sprockets%2F00916393d1e2e947ddafa91701411a73 +0 -0
- data/spec/dummy/tmp/cache/assets/CA6/DF0/sprockets%2F7da83747ce56e49393b6b8726587f846 +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/CAF/0F0/sprockets%2F6000e67cf3f2377f860c24da7c819701 +0 -0
- data/spec/dummy/tmp/cache/assets/CB0/700/sprockets%2F006af6bf0f6b55777b03c4615c853881 +0 -0
- data/spec/dummy/tmp/cache/assets/CB6/120/sprockets%2F2df706e820de0f82332a613c49f47867 +0 -0
- data/spec/dummy/tmp/cache/assets/CB7/780/sprockets%2F64d8fae70270780f639c66a5e2625c60 +0 -0
- data/spec/dummy/tmp/cache/assets/CB9/9A0/sprockets%2Ff65514f4cd784727244232d742ea5fd7 +0 -0
- data/spec/dummy/tmp/cache/assets/CBB/FA0/sprockets%2F74922109263bdc965b2e9567eec6d154 +0 -0
- data/spec/dummy/tmp/cache/assets/CBD/AF0/sprockets%2Fd687ec33822256e9444e8cd04f1b4873 +0 -0
- data/spec/dummy/tmp/cache/assets/CBF/630/sprockets%2F707d2db81468088470d476abff35388d +0 -0
- data/spec/dummy/tmp/cache/assets/CC1/780/sprockets%2F3af917d744d875932129ec0ff5d82824 +0 -0
- data/spec/dummy/tmp/cache/assets/CC1/DB0/sprockets%2F95e6273223502af230a0dbaa25410de8 +0 -0
- data/spec/dummy/tmp/cache/assets/CC2/EC0/sprockets%2F76bf80cb571ca530357f78db78167866 +0 -0
- data/spec/dummy/tmp/cache/assets/CC4/800/sprockets%2Fdc523a6389fe6285945c07a90d58c792 +0 -0
- data/spec/dummy/tmp/cache/assets/CCB/3B0/sprockets%2F9535146026add9cffa012ee220204a66 +0 -0
- data/spec/dummy/tmp/cache/assets/CCD/6B0/sprockets%2F4a6a70a4abb215861b095c3188fb7700 +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/CDF/130/sprockets%2F40cbd5582b62423983e378a8c066fc1b +0 -0
- data/spec/dummy/tmp/cache/assets/CE0/090/sprockets%2F48d5d35ae87d0723318b8bc257fa2237 +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/A60/sprockets%2Ff58eee249aa167d23f8220087bb46684 +0 -0
- data/spec/dummy/tmp/cache/assets/CE8/AC0/sprockets%2F0569519b37e386ab3ad82e3e84c3098b +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/9E0/sprockets%2F135480d497ed7e4884462dc0ef0b80d7 +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/CEE/3A0/sprockets%2Fb6c48f0d375946fb4038e3643c468e8a +0 -0
- data/spec/dummy/tmp/cache/assets/CEE/930/sprockets%2Fe196521e15fd8d33e3261d5538fe8f92 +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/C50/sprockets%2F892b968b622f37b988a1de81e09bf631 +0 -0
- data/spec/dummy/tmp/cache/assets/CF4/6F0/sprockets%2Fed96f92571224b862b84d7078b86ded3 +0 -0
- data/spec/dummy/tmp/cache/assets/CF8/780/sprockets%2F8845b81ff27cdb57c835836c9f91a265 +0 -0
- data/spec/dummy/tmp/cache/assets/CFA/D20/sprockets%2Fb26796b39b3c5d6ed70be7989637a493 +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/D0C/EC0/sprockets%2F723f1a523ee728253d75d177d8acac15 +0 -0
- data/spec/dummy/tmp/cache/assets/D0E/570/sprockets%2F90fe371bf8091e88a712124d9cdae260 +0 -0
- data/spec/dummy/tmp/cache/assets/D0F/8D0/sprockets%2Fa44ca61454bee3dd8c876517e90427c0 +0 -0
- data/spec/dummy/tmp/cache/assets/D14/280/sprockets%2F43c2895ad4afe85828a0db8162448dd2 +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/D1A/D30/sprockets%2F815a5177e9edba0c5c996182ef1b3675 +0 -0
- data/spec/dummy/tmp/cache/assets/D1D/560/sprockets%2F1ca784ee7ba1922465147e7f8963eae5 +0 -0
- data/spec/dummy/tmp/cache/assets/D1E/AA0/sprockets%2F5c8741a556bc955cd36e61c88582b6dc +0 -0
- data/spec/dummy/tmp/cache/assets/D1F/B50/sprockets%2Fd4d2d2796d35438471f0a8dc9a960fd9 +0 -0
- data/spec/dummy/tmp/cache/assets/D2D/060/sprockets%2F545ec7a363badb5e7106e5112b53b26d +0 -0
- data/spec/dummy/tmp/cache/assets/D30/740/sprockets%2F4ac342b2e0244e90d08bac61f54f4f82 +0 -0
- data/spec/dummy/tmp/cache/assets/D31/9C0/sprockets%2Fbd102a4f5a4985c3519dd6ab0295a1c6 +0 -0
- data/spec/dummy/tmp/cache/assets/D34/880/sprockets%2F71eea318b082dfb2214e208ff937d5a0 +0 -0
- data/spec/dummy/tmp/cache/assets/D35/7C0/sprockets%2Ff536a2606eaf7d542c0985104cb62baf +0 -0
- data/spec/dummy/tmp/cache/assets/D37/FF0/sprockets%2F96841ca4cfae32c515077f3f5fc303b2 +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108 +0 -0
- data/spec/dummy/tmp/cache/assets/D3D/7D0/sprockets%2Ffc27d6a760b03669e13aad92906d1c6f +0 -0
- data/spec/dummy/tmp/cache/assets/D44/0F0/sprockets%2Fc4d293b967c2e290deed3f3bd2271828 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/E90/sprockets%2F05cfc0bf7c9938963d1d1c63248db80d +0 -0
- data/spec/dummy/tmp/cache/assets/D45/C30/sprockets%2Fcc744877558178a3adb77c441cadce70 +0 -0
- data/spec/dummy/tmp/cache/assets/D47/A90/sprockets%2Fe7ca382b607c595ea6505853f7fb63da +0 -0
- data/spec/dummy/tmp/cache/assets/D49/1F0/sprockets%2F773b56f87127c6605e7d1d3faf2b6af6 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/250/sprockets%2F1693ff3be97934a7bfbbf265e5e82112 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/A10/sprockets%2Fc4656bd995a6f297c26d19b13aadb963 +0 -0
- data/spec/dummy/tmp/cache/assets/D4A/580/sprockets%2F19b8d8a9a57850de79b6c099fb2d010e +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/D54/D80/sprockets%2F631327e25ec20edc723046cdec3bb1c0 +0 -0
- data/spec/dummy/tmp/cache/assets/D59/550/sprockets%2Fe49da7ad1c241cee900fb162901ab362 +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/D61/1F0/sprockets%2F0c7a6176d2fc4db00bb9a74d36380fe1 +0 -0
- data/spec/dummy/tmp/cache/assets/D63/050/sprockets%2Fae26cd0ae2c0da97e49f6043b91008d5 +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/D6A/ED0/sprockets%2F662ef351d001ba9f2a3a578d26bf9eb6 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/DA0/sprockets%2Fac936bf40b42227a2bf9d474ae9ec149 +0 -0
- data/spec/dummy/tmp/cache/assets/D6F/EF0/sprockets%2F266f85c5d3eab6fec153d8281a2019df +0 -0
- data/spec/dummy/tmp/cache/assets/D75/900/sprockets%2F74b847bd8ff90740d31a43ad3787adbf +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/D7E/C10/sprockets%2F747c98c3cc7494a62dd882752adffb2b +0 -0
- data/spec/dummy/tmp/cache/assets/D8C/520/sprockets%2F221cd58a042baac534d27e4cfedc1188 +0 -0
- data/spec/dummy/tmp/cache/assets/D93/BD0/sprockets%2Ff5e1b60201e08e3ddf8d3de5211f3d5e +0 -0
- data/spec/dummy/tmp/cache/assets/D9B/C20/sprockets%2F0e01606ddd95e451bc7d39ce0eeb664d +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/DA5/DE0/sprockets%2F57680bc2f7cae9d7ec2f348abe355a90 +0 -0
- data/spec/dummy/tmp/cache/assets/DAA/230/sprockets%2Fb80eec8b731a6327e79dbd10dd958dd9 +0 -0
- data/spec/dummy/tmp/cache/assets/DAC/9B0/sprockets%2F5e58701704fefbc8f88ae24c549fab6b +0 -0
- data/spec/dummy/tmp/cache/assets/DAE/6C0/sprockets%2F77c7a8676aeefa73156c55dfcf51cc46 +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/DC2/AA0/sprockets%2F0133c0bce803af6dd8a2e9fbc85a7b34 +0 -0
- data/spec/dummy/tmp/cache/assets/DC7/A10/sprockets%2F84a8af0fcbf401864e1ae5bf092cba94 +0 -0
- data/spec/dummy/tmp/cache/assets/DCD/440/sprockets%2F2dcf3525da2ead9b3d1d7779cfb116e5 +0 -0
- data/spec/dummy/tmp/cache/assets/DCF/180/sprockets%2F9b325ef8af6f3d73b2fae1ddc62e2390 +0 -0
- data/spec/dummy/tmp/cache/assets/DD0/ED0/sprockets%2Fdd5b6b5e4cec495a0be2e08d443b587f +0 -0
- data/spec/dummy/tmp/cache/assets/DD8/C50/sprockets%2Fa44f7d5699f478add51d162aadefa8b4 +0 -0
- data/spec/dummy/tmp/cache/assets/DE4/140/sprockets%2F139e4ab85d1aacb22c115fa136afdc8a +0 -0
- data/spec/dummy/tmp/cache/assets/DE9/C90/sprockets%2Fed4164cdd76d8ee9ec6d5d4a37e86b78 +0 -0
- data/spec/dummy/tmp/cache/assets/DEB/110/sprockets%2F2dbdab0ce5babca645cdb5780004f875 +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/960/sprockets%2F4d6d81bd3ce48ba45aaf36cdb5181a7e +0 -0
- data/spec/dummy/tmp/cache/assets/DF7/E10/sprockets%2F25e4253aba9a9adcefb72552fb1ff0c8 +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/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/E2F/790/sprockets%2F7fac280deaa7ef20a77d5c9b5b9cfc34 +0 -0
- data/spec/dummy/tmp/cache/assets/E2F/9D0/sprockets%2Fafd2bbe50bf8be88e74d1dc049a7c09d +0 -0
- data/spec/dummy/tmp/cache/assets/E36/A40/sprockets%2Ff3477eebd69a4f1b8fbdd3f9ef2ba242 +0 -0
- data/spec/dummy/tmp/cache/assets/E37/9B0/sprockets%2F4defba98cf7befff81450e2b24e90b6d +0 -0
- data/spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 +0 -0
- data/spec/dummy/tmp/cache/assets/E58/840/sprockets%2Fab7a15f76acfee8c320dd3cfc2a8c6d5 +0 -0
- data/spec/dummy/tmp/cache/assets/E64/1E0/sprockets%2F81ab4c863fbbdec8dd66afc97ebf034d +0 -0
- data/spec/dummy/tmp/cache/assets/E6E/260/sprockets%2Fd9f8ab8b91ef582cc6c99a3ba0dedfe6 +0 -0
- data/spec/dummy/tmp/cache/assets/E89/4C0/sprockets%2F68b2eedb3cde6fc01d50fead7caf8a18 +0 -0
- data/spec/dummy/tmp/cache/assets/F79/360/sprockets%2F0ce035fefee5ebdabc8efabfbdbd6ee4 +0 -0
- data/spec/features/html_reporter_spec.rb +1 -1
- data/spec/javascripts/angular_helper.coffee +5 -0
- data/spec/javascripts/teabag/angular/models_aspec.coffee +95 -0
- data/spec/javascripts/teabag/angular/reporters/html_aspec.coffee +9 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/teabag/suite_spec.rb +1 -2
- data/vendor/assets/javascripts/angular-scenario-1.0.5.MIT-LICENSE +22 -0
- data/vendor/assets/javascripts/angular-scenario-1.0.5.js +26195 -0
- metadata +109 -9
|
@@ -2738,6 +2738,8 @@ jasmine.version_= {
|
|
|
2738
2738
|
|
|
2739
2739
|
fixture.el = null;
|
|
2740
2740
|
|
|
2741
|
+
fixture.$el = null;
|
|
2742
|
+
|
|
2741
2743
|
fixture.json = [];
|
|
2742
2744
|
|
|
2743
2745
|
fixture.preload = function() {
|
|
@@ -2865,6 +2867,9 @@ jasmine.version_= {
|
|
|
2865
2867
|
create = function() {
|
|
2866
2868
|
var _ref;
|
|
2867
2869
|
Teabag.fixture.el = document.createElement("div");
|
|
2870
|
+
if (typeof window.$ === 'function') {
|
|
2871
|
+
Teabag.fixture.$el = $(Teabag.fixture.el);
|
|
2872
|
+
}
|
|
2868
2873
|
Teabag.fixture.el.id = "teabag-fixtures";
|
|
2869
2874
|
return (_ref = document.body) != null ? _ref.appendChild(Teabag.fixture.el) : void 0;
|
|
2870
2875
|
};
|
|
@@ -3027,6 +3032,7 @@ jasmine.version_= {
|
|
|
3027
3032
|
if ((_ref = this.findEl("suite-select")) != null) {
|
|
3028
3033
|
_ref.onchange = this.changeSuite;
|
|
3029
3034
|
}
|
|
3035
|
+
this.findEl("root-link").href = Teabag.root;
|
|
3030
3036
|
this.el = this.findEl("report-all");
|
|
3031
3037
|
this.showConfiguration();
|
|
3032
3038
|
this.buildProgress();
|
|
@@ -3503,7 +3509,7 @@ jasmine.version_= {
|
|
|
3503
3509
|
}).call(this);
|
|
3504
3510
|
(function() {
|
|
3505
3511
|
|
|
3506
|
-
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
|
3512
|
+
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1><a href=\"\" id=\"teabag-root-link\">Teabag</a></h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
|
3507
3513
|
|
|
3508
3514
|
}).call(this);
|
|
3509
3515
|
(function() {
|
|
@@ -5476,6 +5476,8 @@
|
|
|
5476
5476
|
|
|
5477
5477
|
fixture.el = null;
|
|
5478
5478
|
|
|
5479
|
+
fixture.$el = null;
|
|
5480
|
+
|
|
5479
5481
|
fixture.json = [];
|
|
5480
5482
|
|
|
5481
5483
|
fixture.preload = function() {
|
|
@@ -5603,6 +5605,9 @@
|
|
|
5603
5605
|
create = function() {
|
|
5604
5606
|
var _ref;
|
|
5605
5607
|
Teabag.fixture.el = document.createElement("div");
|
|
5608
|
+
if (typeof window.$ === 'function') {
|
|
5609
|
+
Teabag.fixture.$el = $(Teabag.fixture.el);
|
|
5610
|
+
}
|
|
5606
5611
|
Teabag.fixture.el.id = "teabag-fixtures";
|
|
5607
5612
|
return (_ref = document.body) != null ? _ref.appendChild(Teabag.fixture.el) : void 0;
|
|
5608
5613
|
};
|
|
@@ -5765,6 +5770,7 @@
|
|
|
5765
5770
|
if ((_ref = this.findEl("suite-select")) != null) {
|
|
5766
5771
|
_ref.onchange = this.changeSuite;
|
|
5767
5772
|
}
|
|
5773
|
+
this.findEl("root-link").href = Teabag.root;
|
|
5768
5774
|
this.el = this.findEl("report-all");
|
|
5769
5775
|
this.showConfiguration();
|
|
5770
5776
|
this.buildProgress();
|
|
@@ -6241,7 +6247,7 @@
|
|
|
6241
6247
|
}).call(this);
|
|
6242
6248
|
(function() {
|
|
6243
6249
|
|
|
6244
|
-
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
|
6250
|
+
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1><a href=\"\" id=\"teabag-root-link\">Teabag</a></h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
|
6245
6251
|
|
|
6246
6252
|
}).call(this);
|
|
6247
6253
|
(function() {
|
|
@@ -2114,6 +2114,8 @@
|
|
|
2114
2114
|
|
|
2115
2115
|
fixture.el = null;
|
|
2116
2116
|
|
|
2117
|
+
fixture.$el = null;
|
|
2118
|
+
|
|
2117
2119
|
fixture.json = [];
|
|
2118
2120
|
|
|
2119
2121
|
fixture.preload = function() {
|
|
@@ -2241,6 +2243,9 @@
|
|
|
2241
2243
|
create = function() {
|
|
2242
2244
|
var _ref;
|
|
2243
2245
|
Teabag.fixture.el = document.createElement("div");
|
|
2246
|
+
if (typeof window.$ === 'function') {
|
|
2247
|
+
Teabag.fixture.$el = $(Teabag.fixture.el);
|
|
2248
|
+
}
|
|
2244
2249
|
Teabag.fixture.el.id = "teabag-fixtures";
|
|
2245
2250
|
return (_ref = document.body) != null ? _ref.appendChild(Teabag.fixture.el) : void 0;
|
|
2246
2251
|
};
|
|
@@ -2403,6 +2408,7 @@
|
|
|
2403
2408
|
if ((_ref = this.findEl("suite-select")) != null) {
|
|
2404
2409
|
_ref.onchange = this.changeSuite;
|
|
2405
2410
|
}
|
|
2411
|
+
this.findEl("root-link").href = Teabag.root;
|
|
2406
2412
|
this.el = this.findEl("report-all");
|
|
2407
2413
|
this.showConfiguration();
|
|
2408
2414
|
this.buildProgress();
|
|
@@ -2879,7 +2885,7 @@
|
|
|
2879
2885
|
}).call(this);
|
|
2880
2886
|
(function() {
|
|
2881
2887
|
|
|
2882
|
-
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
|
2888
|
+
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1><a href=\"\" id=\"teabag-root-link\">Teabag</a></h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
|
2883
2889
|
|
|
2884
2890
|
}).call(this);
|
|
2885
2891
|
(function() {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#= require angular-scenario-1.0.5
|
|
2
|
+
#= require teabag/base/teabag
|
|
3
|
+
#= require teabag/angular/reporters/console
|
|
4
|
+
#= require teabag/angular/reporters/html
|
|
5
|
+
|
|
6
|
+
class Teabag.Runner extends Teabag.Runner
|
|
7
|
+
|
|
8
|
+
setup: ->
|
|
9
|
+
new (@getReporter())(this)
|
|
10
|
+
angular.scenario.setUpAndRun(scenario_output: "teabag,html")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Teabag.Spec
|
|
15
|
+
|
|
16
|
+
constructor: (@spec) ->
|
|
17
|
+
@fullDescription = "#{@spec.fullDefinitionName}: #{@spec.name}"
|
|
18
|
+
@description = @spec.name
|
|
19
|
+
@link = "#"
|
|
20
|
+
#@link = "?grep=#{encodeURIComponent(@fullDescription)}"
|
|
21
|
+
@parent = new Teabag.Suite(@spec)
|
|
22
|
+
@suiteName = @parent.fullDescription
|
|
23
|
+
@viewId = @spec.id
|
|
24
|
+
@pending = false
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
getParents: ->
|
|
28
|
+
[@parent]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
errors: ->
|
|
32
|
+
return [] unless @spec.steps
|
|
33
|
+
for step in @spec.steps
|
|
34
|
+
continue if step.status == "success"
|
|
35
|
+
{message: step.error, stack: [step.line]}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
result: ->
|
|
39
|
+
status = "failed"
|
|
40
|
+
status = "passed" if @spec.status == "success"
|
|
41
|
+
status: status
|
|
42
|
+
skipped: false
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class Teabag.Suite
|
|
47
|
+
|
|
48
|
+
constructor: (@suite) ->
|
|
49
|
+
@fullDescription = @suite.fullDefinitionName
|
|
50
|
+
@description = @suite.fullDefinitionName
|
|
51
|
+
@link = "#"
|
|
52
|
+
@parent = {root: true}
|
|
53
|
+
@viewId = null
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
class Teabag.Reporters.Console extends Teabag.Reporters.Console
|
|
2
|
+
|
|
3
|
+
constructor: ->
|
|
4
|
+
super
|
|
5
|
+
angular.scenario.output("teabag", @bindScenarioOutput)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
bindScenarioOutput: (context, runner, model) =>
|
|
9
|
+
model.on "runnerBegin", => @reportRunnerStarting(total: angular.scenario.Describe.specId)
|
|
10
|
+
model.on "specEnd", (spec) => @reportSpecResults(spec)
|
|
11
|
+
model.on "runnerEnd", => @reportRunnerResults()
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class Teabag.Reporters.HTML extends Teabag.Reporters.HTML
|
|
2
|
+
|
|
3
|
+
constructor: ->
|
|
4
|
+
super
|
|
5
|
+
angular.scenario.output("teabag", @bindScenarioOutput)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
bindScenarioOutput: (context, runner, model) =>
|
|
9
|
+
# model.on "specBegin", (spec) => @reportSpecStarting(spec)
|
|
10
|
+
model.on "specEnd", (spec) => @reportSpecResults(spec)
|
|
11
|
+
model.on "runnerEnd", => @reportRunnerResults()
|
|
12
|
+
model.on "runnerBegin", =>
|
|
13
|
+
@reportRunnerStarting(total: angular.scenario.Describe.specId)
|
|
14
|
+
header = document.getElementById("header")
|
|
15
|
+
header.parentNode.removeChild(header) if header
|
|
16
|
+
specs = document.getElementById("specs")
|
|
17
|
+
specs.style.paddingTop = 0 if specs
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
envInfo: ->
|
|
21
|
+
"angular-scenario 1.0.5"
|
|
@@ -2,6 +2,7 @@ class Teabag.fixture
|
|
|
2
2
|
|
|
3
3
|
@cache: {}
|
|
4
4
|
@el: null
|
|
5
|
+
@$el: null # will only be defined if window.$ is defined.
|
|
5
6
|
@json: []
|
|
6
7
|
|
|
7
8
|
# Public API
|
|
@@ -74,6 +75,7 @@ class Teabag.fixture
|
|
|
74
75
|
|
|
75
76
|
create = =>
|
|
76
77
|
Teabag.fixture.el = document.createElement("div")
|
|
78
|
+
Teabag.fixture.$el = $(Teabag.fixture.el) if typeof(window.$) == 'function'
|
|
77
79
|
Teabag.fixture.el.id = "teabag-fixtures"
|
|
78
80
|
document.body?.appendChild(Teabag.fixture.el)
|
|
79
81
|
|
|
@@ -29,6 +29,8 @@ class Teabag.Reporters.HTML extends Teabag.Reporters.BaseView
|
|
|
29
29
|
@findEl("suites").innerHTML = @buildSuiteSelect()
|
|
30
30
|
@findEl("suite-select")?.onchange = @changeSuite
|
|
31
31
|
|
|
32
|
+
@findEl("root-link").href = Teabag.root
|
|
33
|
+
|
|
32
34
|
@el = @findEl("report-all")
|
|
33
35
|
|
|
34
36
|
@showConfiguration()
|
|
@@ -3,8 +3,12 @@ module Teabag::SpecHelper
|
|
|
3
3
|
def stylesheet_link_tag_for_teabag(*sources)
|
|
4
4
|
sources.collect do |source|
|
|
5
5
|
asset = defined?(lookup_asset_for_path) ? lookup_asset_for_path(source, type: :stylesheet) : asset_paths.asset_for(source, "css")
|
|
6
|
-
asset.
|
|
7
|
-
|
|
6
|
+
if asset.respond_to?(:logical_path)
|
|
7
|
+
asset.to_a.map do |dep|
|
|
8
|
+
stylesheet_link_tag(dep.pathname.to_s, href: asset_src(dep, source), type: "text/css").split("\n")
|
|
9
|
+
end
|
|
10
|
+
else
|
|
11
|
+
stylesheet_link_tag(source) unless source.blank?
|
|
8
12
|
end
|
|
9
13
|
end.flatten.uniq.join("\n").html_safe
|
|
10
14
|
end
|
|
@@ -13,8 +17,12 @@ module Teabag::SpecHelper
|
|
|
13
17
|
options = sources.extract_options!
|
|
14
18
|
sources.collect do |source|
|
|
15
19
|
asset = defined?(lookup_asset_for_path) ? lookup_asset_for_path(source, type: :javascript) : asset_paths.asset_for(source, "js")
|
|
16
|
-
asset.
|
|
17
|
-
|
|
20
|
+
if asset.respond_to?(:logical_path)
|
|
21
|
+
asset.to_a.map do |dep|
|
|
22
|
+
javascript_include_tag(dep.pathname.to_s, src: asset_src(dep, options[:instrument]), type: "text/javascript").split("\n")
|
|
23
|
+
end
|
|
24
|
+
else
|
|
25
|
+
javascript_include_tag(source) unless source.blank?
|
|
18
26
|
end
|
|
19
27
|
end.flatten.uniq.join("\n").html_safe
|
|
20
28
|
end
|
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
module Teabag
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
module Teabag
|
|
2
|
+
module Generators
|
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
|
4
|
+
source_root File.expand_path("../", __FILE__)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
desc "Installs the Teabag initializer into your application."
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
class_option :framework, type: :string,
|
|
9
|
+
aliases: "-t",
|
|
10
|
+
default: "jasmine",
|
|
11
|
+
desc: "Specify which test framework to use (Available: jasmine, mocha, or qunit)"
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
class_option :coffee, type: :boolean,
|
|
14
|
+
aliases: "-c",
|
|
15
|
+
default: false,
|
|
16
|
+
desc: "Generate a CoffeeScript spec helper (instead of Javascript)"
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
class_option :env, type: :boolean,
|
|
19
|
+
aliases: "-e",
|
|
20
|
+
default: true,
|
|
21
|
+
desc: "Create the teabag_env.rb file used by the command line interface"
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
def validate_framework
|
|
24
|
+
return if frameworks.include?(options[:framework])
|
|
25
|
+
puts "Unknown framework -- Known: #{frameworks.join(', ')}"
|
|
26
|
+
exit
|
|
27
|
+
end
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
def copy_initializers
|
|
30
|
+
copy_file "templates/#{framework}/initializer.rb", "config/initializers/teabag.rb"
|
|
31
|
+
copy_file "templates/env.rb", "#{framework_type}/teabag_env.rb" if options[:env]
|
|
32
|
+
end
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
def create_structure
|
|
35
|
+
empty_directory "#{framework_type}/javascripts/support"
|
|
36
|
+
empty_directory "#{framework_type}/javascripts/fixtures"
|
|
37
|
+
end
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
def copy_spec_helper
|
|
40
|
+
copy_file "templates/#{framework}/#{framework_type}_helper.#{helper_ext}", "#{framework_type}/javascripts/#{framework_type}_helper.#{helper_ext}"
|
|
41
|
+
end
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
def display_readme
|
|
44
|
+
readme "POST_INSTALL" if behavior == :invoke
|
|
45
|
+
end
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
private
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
def framework
|
|
50
|
+
options[:framework]
|
|
51
|
+
end
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
def frameworks
|
|
54
|
+
%w{jasmine mocha qunit}
|
|
55
|
+
end
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
def helper_ext
|
|
58
|
+
(options[:coffee]) ? "coffee" : "js"
|
|
59
|
+
end
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
def framework_type
|
|
62
|
+
(options[:framework] == "qunit") ? "test" : "spec"
|
|
63
|
+
end
|
|
63
64
|
|
|
65
|
+
end
|
|
64
66
|
end
|
|
65
67
|
end
|
|
@@ -48,9 +48,9 @@ Teabag.setup do |config|
|
|
|
48
48
|
# stylesheet for the HTML reporter.
|
|
49
49
|
suite.stylesheets = ["teabag"]
|
|
50
50
|
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
suite.no_coverage = [%r{/support/}, %r{/(.+)_helper.}]
|
|
51
|
+
# When running coverage reports, you probably want to exclude libraries that you're not testing.
|
|
52
|
+
# Accepts an array of filenames or regular expressions. The default is to exclude assets from vendors or gems.
|
|
53
|
+
suite.no_coverage = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}]
|
|
54
54
|
# suite.no_coverage << "jquery.min.js" # excludes jquery from coverage reports
|
|
55
55
|
|
|
56
56
|
end
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
# You can require javascript files here. A good place to start is by requiring your application.js.
|
|
2
|
-
# require application
|
|
3
|
-
#
|
|
4
1
|
# Teabag includes some support files, but you can use anything from your own support path too.
|
|
5
2
|
# require support/jasmine-jquery
|
|
6
3
|
# require support/sinon
|
|
@@ -23,3 +20,6 @@
|
|
|
23
20
|
# the configuration and use this file as a manifest.
|
|
24
21
|
#
|
|
25
22
|
# For more information: http://github.com/modeset/teabag
|
|
23
|
+
#
|
|
24
|
+
# You can require javascript files here. A good place to start is by requiring your application.js.
|
|
25
|
+
#= require application
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// You can require javascript files here. A good place to start is by requiring your application.js.
|
|
2
|
-
// require application
|
|
3
|
-
//
|
|
4
1
|
// Teabag includes some support files, but you can use anything from your own support path too.
|
|
5
2
|
// require support/jasmine-jquery
|
|
6
3
|
// require support/sinon
|
|
@@ -23,3 +20,7 @@
|
|
|
23
20
|
// the configuration and use this file as a manifest.
|
|
24
21
|
//
|
|
25
22
|
// For more information: http://github.com/modeset/teabag
|
|
23
|
+
//
|
|
24
|
+
// You can require javascript files here. A good place to start is by requiring your application.js.
|
|
25
|
+
//= require application
|
|
26
|
+
|
|
@@ -48,9 +48,9 @@ Teabag.setup do |config|
|
|
|
48
48
|
# stylesheet for the HTML reporter.
|
|
49
49
|
suite.stylesheets = ["teabag"]
|
|
50
50
|
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
suite.no_coverage = [%r{/support/}, %r{/(.+)_helper.}]
|
|
51
|
+
# When running coverage reports, you probably want to exclude libraries that you're not testing.
|
|
52
|
+
# Accepts an array of filenames or regular expressions. The default is to exclude assets from vendors or gems.
|
|
53
|
+
suite.no_coverage = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}]
|
|
54
54
|
# suite.no_coverage << "jquery.min.js" # excludes jquery from coverage reports
|
|
55
55
|
|
|
56
56
|
end
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
# You can require javascript files here. A good place to start is by requiring your application.js.
|
|
2
|
-
# require application
|
|
3
|
-
#
|
|
4
1
|
# Teabag includes some support files, but you can use anything from your own support path too.
|
|
5
2
|
# require support/expect
|
|
6
3
|
# require support/sinon
|
|
@@ -23,3 +20,6 @@
|
|
|
23
20
|
# the configuration and use this file as a manifest.
|
|
24
21
|
#
|
|
25
22
|
# For more information: http://github.com/modeset/teabag
|
|
23
|
+
#
|
|
24
|
+
# You can require javascript files here. A good place to start is by requiring your application.js.
|
|
25
|
+
#= require application
|