teaspoon 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -6
- data/app/assets/javascripts/teaspoon-angular.js +0 -6
- data/app/assets/javascripts/teaspoon-jasmine.js +0 -10
- data/app/assets/javascripts/teaspoon-mocha.js +3 -10
- data/app/assets/javascripts/teaspoon-qunit.js +0 -6
- data/app/assets/javascripts/teaspoon-teaspoon.js +2 -2
- data/app/assets/javascripts/teaspoon/base/teaspoon.coffee +2 -2
- data/app/assets/javascripts/teaspoon/mocha.coffee +1 -1
- data/app/views/teaspoon/spec/_require_js.html.erb +19 -0
- data/app/views/teaspoon/spec/_standard.html.erb +4 -0
- data/app/views/teaspoon/spec/runner.html.erb +3 -31
- data/app/views/teaspoon/spec/suites.html.erb +1 -1
- data/lib/generators/teaspoon/install/POST_INSTALL +2 -2
- data/lib/tasks/teaspoon.rake +3 -6
- data/lib/teaspoon/configuration.rb +28 -22
- data/lib/teaspoon/console.rb +4 -3
- data/lib/teaspoon/drivers/phantomjs_driver.rb +1 -1
- data/lib/teaspoon/engine.rb +1 -1
- data/lib/teaspoon/environment.rb +0 -23
- data/lib/teaspoon/runner.rb +1 -1
- data/lib/teaspoon/suite.rb +10 -7
- data/lib/teaspoon/version.rb +1 -1
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/environments/development.rb +3 -3
- data/spec/dummy/config/environments/test.rb +3 -3
- data/spec/dummy/log/development.log +7790 -0
- data/spec/dummy/log/test.log +943 -0
- data/spec/dummy/tmp/cache/assets/C25/DF0/sprockets%2F112ca295249c55965432d1b7287494f2 +0 -0
- data/spec/dummy/tmp/cache/assets/C5C/590/sprockets%2Ff42773a21e1ad7875748692902174e5d +0 -0
- data/spec/dummy/tmp/cache/assets/C9B/660/sprockets%2F2bf7f93d87a68984bf360036777a9048 +0 -0
- data/spec/dummy/tmp/cache/assets/CBC/A50/sprockets%2F8a6b0964e8b088cc6764b749e0e03922 +0 -0
- data/spec/dummy/tmp/cache/assets/CD9/0A0/sprockets%2F3c2824c156d5b0613aa154fb839f8a84 +0 -0
- data/spec/dummy/tmp/cache/assets/CDE/AA0/sprockets%2Fb269a421986065155eec6b0ccf85c216 +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/610/sprockets%2F8932b9f7619376c7cd1b64e42b4a5d42 +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/EA0/sprockets%2F35b39c5267e178ce2d838cc8598b7a24 +0 -0
- data/spec/dummy/tmp/cache/assets/D0A/500/sprockets%2F1744b63e25858a81fea0430647cc9aca +0 -0
- data/spec/dummy/tmp/cache/assets/D1D/7E0/sprockets%2F63c871d9851725b9a3b4c79ac7692adc +0 -0
- data/spec/dummy/tmp/cache/assets/D1D/DC0/sprockets%2F6c0b1513003f61e4ca60524ff2b1cb2f +0 -0
- data/spec/dummy/tmp/cache/assets/D20/990/sprockets%2F97d3c7dd2bdeb011879c31229e989f90 +0 -0
- data/spec/dummy/tmp/cache/assets/D45/6C0/sprockets%2F6d48a05de0277502fa6f67a53f0e5f8f +0 -0
- data/spec/dummy/tmp/cache/assets/D4D/500/sprockets%2F75125bab369cd146b4175fdff9f5d739 +0 -0
- data/spec/dummy/tmp/cache/assets/D62/750/sprockets%2F9fccdb1b100005e1d4bdc166951857fe +0 -0
- data/spec/dummy/tmp/cache/assets/D65/B30/sprockets%2Fe6e3e3a02c509c3064ce77cb5fe24f21 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/F20/sprockets%2F2427b0e9fceeb59c529d124005bf31fd +0 -0
- data/spec/dummy/tmp/cache/assets/D6A/770/sprockets%2Faa5ff4c1e3bb4e973a730789af00a529 +0 -0
- data/spec/dummy/tmp/cache/assets/D78/A90/sprockets%2Fc39e5849e26e90eb372a38bbdf33d60f +0 -0
- data/spec/dummy/tmp/cache/assets/DC1/3D0/sprockets%2F86c67cecd2b0adba7950111e7a8c1e2d +0 -0
- data/spec/dummy/tmp/cache/assets/DC8/410/sprockets%2Fce10d00f39facdef8448ce9f4c18a022 +0 -0
- data/spec/dummy/tmp/cache/assets/E70/880/sprockets%2Fc40e659adecd492d9fe52c7faf9adf8b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0054df06d1cae8d2b06febd6e77c0b9e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/016bce1f4a2efbe612e877566d9ea100 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/01e2a3325e2617549c1dcfdab8ff93a7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/02a4c00d7748f3f272b27d771164e1c3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/02e1c54cebf6319465e469269b91ab66 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/03aa8c32f2ec5847b83b4e293b695ce2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/052e2c622efb53025e9079646cf01e08 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/05b1005fe9ce9c354228151b517ee009 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/074a8d4e7179c365379a1357729cebce +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/07beacb160854d50a8348e861c26f172 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/07e0339625734ae5a31e04166411b782 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/08a6eb8925208e596a4315746e2717da +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/08ecd9ad20025d3c1a9a99bce581c2d2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/091f246d300154ab65ba71bb1b37f490 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/09ebedd4feaad33be1acf8d1c5d2570f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0b6a13a22b1e2bcc05848aaa9e1dd616 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0e6215d8ea6200c886a51d5ecf674654 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0eb156e218088263f90638aa01b7a626 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0f6a3438734a9a1edb0e0675d9d0377d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0faaea06542b9581dd4f5b6cd3688d4d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/112ca295249c55965432d1b7287494f2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/118cfd38542d213203f3dcd4dfeebd24 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1371f4209f2e3da36cc7ef40c312009d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13d208e1c03b0955e5a1fe2b0b5b23ef +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/145ef30d3bcc7e3ca35892689f6ce8a0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/15bbb543d7fb17009e5b5e397ccd5b8b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1744b63e25858a81fea0430647cc9aca +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1942d56a64c30e56e0152274cfc39026 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1c11323cba96871d4a421b701d5fac73 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1c46a2827c86133bc4760109187fd59c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1f2a97763ec71dafb4703fb1106ee483 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/20cf37ca9a4df80bc5da11fafd195e34 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/20ebb049c3c692d97b2972d14b029c5f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2154b6b03f3215665cd076b8b57d516d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/21ebb80e795090546a759df5a7c10f29 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/22af99288805be7db674b07e8c8e4373 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2330f9bc8907f8ed00fa58b62ebefbcf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2427b0e9fceeb59c529d124005bf31fd +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/256f2b5ef55bb2178d163de1220af93b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2587be623abb5cdb107d66c39fc34377 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/292fcaf456df2e8e233cc858eb4ace9f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2998e7067c0bede1824dfd7f5fc95eef +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/29c32d317ecd430bad9d5cb7d34a7fce +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2a787012f1b90d24f42348def86799e3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2bf7f93d87a68984bf360036777a9048 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3220d6e8829d7f682b36690d24d89370 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/35452dbbf5cfb6bc064a3fa7c8095870 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/35b39c5267e178ce2d838cc8598b7a24 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/36fdd953c34e9e9cfc14986b8dba03e0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/38911cf3b482e0a9ffccdfc3e83d931d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/38d070e91f1b7c5215d70b2525cc07d0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/39d425c327b59ef33c098d2d26898965 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3a2136e6395fb4df7797fb30fc5a1f80 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3c2824c156d5b0613aa154fb839f8a84 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3c37be0012b241b56b8563b15179847e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3d58eb5be1b9facbb70f53cd486b2f30 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3d798baf183cc4887b3992608023b3c9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3de69a9ec64e8beae2162f2c2f10b652 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/423830d3fc61db9ea5dd6d33604f8ae4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/445120c6ae40c4f2ae895467d1bbb12c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/45f20d90b38849e4353c416769053d12 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4601411fe10ef402c54609b2df2d13e2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/461f7f03173d3b5412597ca9ace9eff2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/46365985ce947df2576dca9a91a49685 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/46fecc995c7398a909e40287b688aead +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/48f8b7ca81c7ea65efabfb0bf9e9eded +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4bec51fd42ffdf7ebaed5174c225ccb2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4bf23e7d8c09d0e6cffeebef39887ec8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4c6efdfbb1b86b56c61f560eaee41a33 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4c75aaa6cb44f86fb775481119bb8f94 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4de73ac67b329911b1a20f7ed98e995b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4f7425fbbf4c3fd2e6e64d7e8cdcb224 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4fadd68bdaa7a15b388bcc7e31233a70 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/508700ef01989622f74d016af26c3d91 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/53b39eb9f52812779e5702977cca7b81 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/56b12ffb63cdb65bb22fdfb17c3e7d3f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/58c3a51016fd8c7b5e4456867ad98165 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5a8fd092f1b0edb02b2ea0e8b2fb3f31 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5f02cc6a1789b46ed93f4a6225650eb0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/60c44252744654a6be1f962c64f7e8c0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/616dc865f64dd96d844a082e7d8710f9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/63c871d9851725b9a3b4c79ac7692adc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/649f4fabc8871ebb13456c404e8da320 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/65ca6b356cd31cd9549ce4abbe133c46 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/66968eef158c2c516761d47ed7f9de4f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6953ed07811a21dbf3e2e6fe3adf3887 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6a029e83ec409bfe13766cf37becf8cc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6c0b1513003f61e4ca60524ff2b1cb2f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6d48a05de0277502fa6f67a53f0e5f8f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6dba5274d817fdc15c35da619cf98ec3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6e83f40cc9d9305a02c35bceae3e3dde +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/701c40fd5a85974f67463cd24f52c083 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/70d4509f6ebbc286e37ff1aa2dfec564 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/71169bd3cbcd25bd883788c85bf368db +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7234e32a7c4f75006804d433ad2604e3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/743f704f57b3be0054262ee4cfdad3ca +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/75125bab369cd146b4175fdff9f5d739 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/766a8893a322585eff26c7bc9ad23d73 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7803747293bdf7e351e12208ce2adb5e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7977d4db3591d52af3c7a1d32375d2c0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7c2185efe2d10ffb394dc6d4cb3dd437 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7ca5c8056349b5d9faedf61586897245 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7f370a14e81c2609993a8beb69c1ca9e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7f99f1d8931e19608c655a6d54ecebde +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8139ac06e8c5dce66a851849f9e61d3c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/81c12a3d4baa2708a1976971c5be97bb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/85eae8c3c76d6df51cf4d5b4c4afda3c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/86a8328ac33071569f5d222fe3af0e52 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/86c67cecd2b0adba7950111e7a8c1e2d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/86cfa20850f26cac6060fe7821089252 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8783cd1e0a84f6f66fca5cf03c55ee5c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8932b9f7619376c7cd1b64e42b4a5d42 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8a6b0964e8b088cc6764b749e0e03922 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8bae8adecebebb91c6d78778efc9a85f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8bee82bd1e7266d6993171c496ec99a3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8c36c7983c10b95f7894cfaf88e52823 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9178e65c1450b255f7e2ee47800095c0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/940ff7dd2eb90b973d157f64a913dca7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/97d3c7dd2bdeb011879c31229e989f90 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9af7eb9fe427f90f4316402cea5fab7c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9b97a5c5521043c8454271a8a18612b2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9c1917b055c00de1b20ea9a80156e459 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9d3df22c1d14157acc0d7551700640f5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9f13709c656a483ca78d673ec719e869 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9fbcf98472dfc131ab3069c07e1cf2dd +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9fccdb1b100005e1d4bdc166951857fe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a33b3dda5955d0fe5da0f31a84405bdf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a4876ddba1e5189f8550a984ecb73c66 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a5ccda39907493196d8a046a7778300a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a65d355185e6ed0699611739c38a6683 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a7bc616914f8b8ecb8234b3b19eb8b2c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a8e6dddc04c87982036dc3128dddf592 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a9dc643a8e046f4795746f54eec3674e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aa5ff4c1e3bb4e973a730789af00a529 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aa81cf310d5d140bbd863483f38fd0a9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ac3639fd8faa98d0aacac64154539513 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ac5424c2468c0ec2fd1985fc0e2f0fe0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ac75d9bb3ad3393033a29b1558f68dc6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/acab060322751b3cc1f8189aa054a901 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ad79f3d9ccc852e44b0799019b48915d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ad929fe0ea4b6b870f243475518f2007 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b0785b5eca3ab95a9cdd7224bc70f7b8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b0fdd3aaec208299720615ffbaa588d5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b2655da2ace22026d8567f637e597a9c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b269a421986065155eec6b0ccf85c216 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b3f106fdb0273e14ceaac0981056f182 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b5bc90bd03b8b8cb88536edd94400a11 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b6ddeed67c9ebb1834d6252ef0360d1f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b8c9bdf295e555386f45c2b9039a0540 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b924d0b704b7f7ccae9a8502cf8d12da +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bb1481aba2ca44d7b5ee1fe1f16ff418 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bca72885d4e5f5b5140a3324ec0c7518 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bdc5cc7c623bf7b38becd3e0cf86238b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bfa1dc76284515e3af8c18bef1e9e783 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c0228c8ca1319a061db8d99dc22bd655 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c39e5849e26e90eb372a38bbdf33d60f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c40e659adecd492d9fe52c7faf9adf8b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c5151e2906c7bc7aa0c535125359d57c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c63844335889f8194cd6f52a8b8ccaf7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c7a1d2aa3e560fe16146ff9ae2007fb3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c7b8416a760ef20fb941c268d6247b2c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c87bc9487488c0596756362e14e23f0b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cc1c50c422676544436b93e13078a165 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ce10d00f39facdef8448ce9f4c18a022 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d13ee01780875b57ce81ed7bc0135e8e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d2cfc054a6b1cb0b10c5bb2db0470cb3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d5b452a1060159470bdfa5c9ce0dbb93 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d627a8776bc0b99cb1a80a0a92286ca2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d69b30d50e02dcb115081b2cd95f9b40 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d6d47781ebf5f7d4eddd22e6b7e1dfa7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dacd1540395ae5552c2e7b33857055e3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dbf7b6c8fb18d83935e4886509dfe507 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ddda43bc0cead5b936fff2e3c183d025 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/de96f229aa3f04869ec12f0de0e27dbc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e0075d8ed16ce9ed495a16469b82220c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e0a2530bd7903b53589c66e72448bf62 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e0f1224ac1294a11684d82b0c6490311 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e2176bb645c9fa718b8c0624feb46797 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e25be213cbed7ef4ddd5635cee309527 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e2be99060750d66e6a6934d09f5273da +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e5bd61699dceba0be30e1503fb1ea2d5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e5c5fb5c313f4e79163a1a3deb77d575 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e64969139cb2df5a0b9b4b7030011bee +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e6e3e3a02c509c3064ce77cb5fe24f21 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e9036d23dde3eafc0faa51dd8608f6b9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ead8c2eb1ee25b783c14cef626db1f86 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/eaee5b2a67693103629352dc4e90afde +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ebc72292729a9cbfd596f5b44e3f66f2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ed0c0b32e435f3a6df66b33bb61a30c2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ed0f1a1faa3cc0285ab9642c11499053 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ed7a7ef7e51b12860b68287841150e8f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ee1b7c45e2c87b3ccd16ad5558a526e5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ee94eb3fc60faad5f9b50bddc033a930 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f10089e1f69b4c1c7c517d35aa42ba53 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f2aa5cfb18cbe25591ad8bba180631e8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f3fc9c6bf619ff58fb4249bbaabf52a3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f42773a21e1ad7875748692902174e5d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7ecd1dcdcdd17d4cbd224f2803826bf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fac522969e4bf34d9f4e71f9642c395a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fc7ef2c6ee65afd632820f8f4f323e19 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fde46c2f2593f4fbe3c8154e9bbfca7c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fe21848495cb244ed1de184b0335ebbe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ff5c7362c733f8187bf4fa1b56567fff +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/01e2a3325e2617549c1dcfdab8ff93a7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/050d99b01781605d476d4448944e818f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/05b1005fe9ce9c354228151b517ee009 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/074a8d4e7179c365379a1357729cebce +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/07beacb160854d50a8348e861c26f172 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/087d4a99adae6d6972937a2e57e93504 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/09ebedd4feaad33be1acf8d1c5d2570f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0d17405b5806711c7cf261e51ea6df82 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e6215d8ea6200c886a51d5ecf674654 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0f6a3438734a9a1edb0e0675d9d0377d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0faaea06542b9581dd4f5b6cd3688d4d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/118cfd38542d213203f3dcd4dfeebd24 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1371f4209f2e3da36cc7ef40c312009d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/15bbb543d7fb17009e5b5e397ccd5b8b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/17dcd25e57fe7397d30d44ffa1400aef +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/20ebb049c3c692d97b2972d14b029c5f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2154b6b03f3215665cd076b8b57d516d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/21ebb80e795090546a759df5a7c10f29 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2330f9bc8907f8ed00fa58b62ebefbcf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2587be623abb5cdb107d66c39fc34377 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2923479467bdf1e189d0c8f79ae46fc0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/292fcaf456df2e8e233cc858eb4ace9f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2998e7067c0bede1824dfd7f5fc95eef +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2a787012f1b90d24f42348def86799e3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3c37be0012b241b56b8563b15179847e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/445120c6ae40c4f2ae895467d1bbb12c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4601411fe10ef402c54609b2df2d13e2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/46365985ce947df2576dca9a91a49685 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4bec51fd42ffdf7ebaed5174c225ccb2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4bf23e7d8c09d0e6cffeebef39887ec8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4c6efdfbb1b86b56c61f560eaee41a33 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4c75aaa6cb44f86fb775481119bb8f94 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/53b39eb9f52812779e5702977cca7b81 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/56b12ffb63cdb65bb22fdfb17c3e7d3f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5a8fd092f1b0edb02b2ea0e8b2fb3f31 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/60c44252744654a6be1f962c64f7e8c0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/65ca6b356cd31cd9549ce4abbe133c46 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6953ed07811a21dbf3e2e6fe3adf3887 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6c0b1513003f61e4ca60524ff2b1cb2f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6e83f40cc9d9305a02c35bceae3e3dde +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/70d4509f6ebbc286e37ff1aa2dfec564 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7395f2f9b6f6a07b44eadbf3c1216a7c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/766a8893a322585eff26c7bc9ad23d73 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7977d4db3591d52af3c7a1d32375d2c0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/799cc5f63f62ebc5faf4511e771fa5b5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7ca5c8056349b5d9faedf61586897245 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7fd0ad444f4a16b359bdbfe0977bb874 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8139ac06e8c5dce66a851849f9e61d3c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/843753cd212542b4d1d0934130b2c370 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/85eae8c3c76d6df51cf4d5b4c4afda3c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/86cfa20850f26cac6060fe7821089252 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8783cd1e0a84f6f66fca5cf03c55ee5c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8bae8adecebebb91c6d78778efc9a85f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9af7eb9fe427f90f4316402cea5fab7c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9b97a5c5521043c8454271a8a18612b2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9c1917b055c00de1b20ea9a80156e459 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a7bc616914f8b8ecb8234b3b19eb8b2c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a9dc643a8e046f4795746f54eec3674e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ac75d9bb3ad3393033a29b1558f68dc6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/acab060322751b3cc1f8189aa054a901 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ad79f3d9ccc852e44b0799019b48915d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b3f106fdb0273e14ceaac0981056f182 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b5bc90bd03b8b8cb88536edd94400a11 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b8694bbec107486c72e40670b3b7832d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bb1481aba2ca44d7b5ee1fe1f16ff418 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bca72885d4e5f5b5140a3324ec0c7518 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bdc5cc7c623bf7b38becd3e0cf86238b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c0228c8ca1319a061db8d99dc22bd655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ce10d00f39facdef8448ce9f4c18a022 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d13ee01780875b57ce81ed7bc0135e8e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d5b452a1060159470bdfa5c9ce0dbb93 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d627a8776bc0b99cb1a80a0a92286ca2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d69b30d50e02dcb115081b2cd95f9b40 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dacd1540395ae5552c2e7b33857055e3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dbcd5b5132f1ec3ff0e7e7db19190f03 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dbf7b6c8fb18d83935e4886509dfe507 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/df7609630657aee0ebe5ed61e929d5dd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e0f1224ac1294a11684d82b0c6490311 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e1317822fdcc5580f1e50c9b91c6e5bb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e2176bb645c9fa718b8c0624feb46797 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e5c5fb5c313f4e79163a1a3deb77d575 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e8cc1bf3231003d92b11cbf1ebd5a82f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/eaee5b2a67693103629352dc4e90afde +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ec46fb30cecc002128c61fb49cf30da8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ed0c0b32e435f3a6df66b33bb61a30c2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f0f2b623b42840839e37f5ed055f5482 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7ecd1dcdcdd17d4cbd224f2803826bf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ff5c7362c733f8187bf4fa1b56567fff +0 -0
- data/spec/features/console_reporter_spec.rb +1 -0
- data/spec/features/instrumentation_spec.rb +1 -0
- data/spec/javascripts/teaspoon/jasmine/spec_jspec.coffee +3 -0
- data/spec/javascripts/teaspoon/mocha/spec_mspec.coffee +9 -0
- data/spec/teaspoon/command_line_spec.rb +2 -2
- data/spec/teaspoon/console_spec.rb +15 -3
- data/spec/teaspoon/coverage_spec.rb +1 -1
- data/spec/teaspoon/drivers/phantomjs_driver_spec.rb +1 -1
- data/spec/teaspoon/drivers/selenium_driver_spec.rb +5 -5
- data/spec/teaspoon/environment_spec.rb +1 -1
- data/spec/teaspoon/formatters/base_formatter_spec.rb +3 -3
- data/spec/teaspoon/instrumentation_spec.rb +4 -3
- data/spec/teaspoon/runner_spec.rb +1 -1
- data/spec/teaspoon/server_spec.rb +4 -4
- data/spec/teaspoon/suite_spec.rb +17 -20
- metadata +620 -6
- data/bin/teabag +0 -2
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -24,6 +24,7 @@ Failures:
|
|
24
24
|
end
|
25
25
|
|
26
26
|
scenario "displays coverage information" do
|
27
|
+
pending "broken with rails 4"
|
27
28
|
pending("needs istanbul to be installed") unless Teaspoon::Instrumentation.which('istanbul')
|
28
29
|
run_simple("bundle exec teaspoon -r ../../spec/teaspoon_env --suite=default app/assets/javascripts/integration/integration_spec.coffee --coverage-reports=text", false)
|
29
30
|
|
@@ -7,6 +7,7 @@ feature "instrumenting javascript" do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
scenario "requesting with instrument=true adds istanbul instrumentation" do
|
10
|
+
pending "broken with rails 4"
|
10
11
|
visit "/assets/instrumented1.js?instrument=true"
|
11
12
|
expect(html).to include("if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }")
|
12
13
|
end
|
@@ -6,8 +6,8 @@ describe Teaspoon::CommandLine do
|
|
6
6
|
|
7
7
|
describe "#initialize" do
|
8
8
|
|
9
|
-
let(:console) {
|
10
|
-
let(:parser) {
|
9
|
+
let(:console) { double(execute: false) }
|
10
|
+
let(:parser) { double(parse!: ["file1", "file2"]) }
|
11
11
|
|
12
12
|
before do
|
13
13
|
Teaspoon::CommandLine.any_instance.stub(:abort)
|
@@ -3,7 +3,7 @@ require "teaspoon/console"
|
|
3
3
|
|
4
4
|
describe Teaspoon::Console do
|
5
5
|
|
6
|
-
let(:server) {
|
6
|
+
let(:server) { double(start: nil, url: "http://url.com") }
|
7
7
|
subject {
|
8
8
|
Teaspoon::Console.any_instance.stub(:start_server)
|
9
9
|
instance = Teaspoon::Console.new
|
@@ -66,7 +66,19 @@ describe Teaspoon::Console do
|
|
66
66
|
|
67
67
|
suites = subject.send(:suites)
|
68
68
|
expect(suites).to eq(["foo"])
|
69
|
-
expect(subject.send(:filter, "foo")).to eq("
|
69
|
+
expect(subject.send(:filter, "foo")).to eq("file[]=file2")
|
70
|
+
end
|
71
|
+
|
72
|
+
it "resolves the files if a directory was given" do
|
73
|
+
directory = [ "test/javascripts" ]
|
74
|
+
resolve_spec_for_output = ['test/javascripts/foo.coffee', 'test/javascripts/bar.coffee']
|
75
|
+
Teaspoon::Suite.should_receive(:resolve_spec_for).with("test/javascripts").and_return(suite: "foo", path: resolve_spec_for_output)
|
76
|
+
subject.execute(nil, directory)
|
77
|
+
expect(subject.instance_variable_get(:@files)).to eq(directory)
|
78
|
+
|
79
|
+
suites = subject.send(:suites)
|
80
|
+
expect(suites).to eq(["foo"])
|
81
|
+
expect(subject.send(:filter, "foo")).to eq("file[]=#{resolve_spec_for_output.join('&file[]=')}")
|
70
82
|
end
|
71
83
|
|
72
84
|
it "runs the tests" do
|
@@ -90,7 +102,7 @@ describe Teaspoon::Console do
|
|
90
102
|
describe "#run_specs" do
|
91
103
|
|
92
104
|
it "calls run_specs on the driver" do
|
93
|
-
driver =
|
105
|
+
driver = double(run_specs: nil)
|
94
106
|
subject.should_receive(:driver).and_return(driver)
|
95
107
|
driver.should_receive(:run_specs).with(:suite_name, "http://url.com/teaspoon/suite_name?reporter=Console", nil)
|
96
108
|
subject.run_specs(:suite_name)
|
@@ -19,7 +19,7 @@ describe Teaspoon::Coverage do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
it "writes the data to a file" do
|
22
|
-
file =
|
22
|
+
file = double('file')
|
23
23
|
File.should_receive(:open).with(@output, "w").and_yield(file)
|
24
24
|
file.should_receive(:write).with('{"foo":"bar"}')
|
25
25
|
subject.reports
|
@@ -10,7 +10,7 @@ describe Teaspoon::Drivers::PhantomjsDriver do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it "instantiates the formatter" do
|
13
|
-
runner =
|
13
|
+
runner = double(failure_count: nil)
|
14
14
|
Teaspoon::Runner.should_receive(:new).and_return(runner)
|
15
15
|
subject.run_specs(:default, "_url_")
|
16
16
|
end
|
@@ -6,21 +6,21 @@ describe Teaspoon::Drivers::SeleniumDriver do
|
|
6
6
|
describe "#run_specs" do
|
7
7
|
|
8
8
|
before do
|
9
|
-
@navigate =
|
10
|
-
@driver =
|
9
|
+
@navigate = double(to: nil)
|
10
|
+
@driver = double(quit: nil, navigate: @navigate, execute_script: nil)
|
11
11
|
Selenium::WebDriver.stub(:for).and_return(@driver)
|
12
|
-
@wait =
|
12
|
+
@wait = double(until: nil)
|
13
13
|
Selenium::WebDriver::Wait.stub(:new).and_return(@wait)
|
14
14
|
end
|
15
15
|
|
16
16
|
it "instantiates the formatter" do
|
17
|
-
runner =
|
17
|
+
runner = double(failure_count: nil)
|
18
18
|
Teaspoon::Runner.should_receive(:new).and_return(runner)
|
19
19
|
subject.run_specs(:default, "_url_")
|
20
20
|
end
|
21
21
|
|
22
22
|
it "returns the number of failures from the runner" do
|
23
|
-
runner =
|
23
|
+
runner = double(failure_count: 42)
|
24
24
|
Teaspoon::Runner.should_receive(:new).and_return(runner)
|
25
25
|
expect(subject.run_specs(:default, "_url_")).to be(42)
|
26
26
|
end
|
@@ -54,7 +54,7 @@ describe Teaspoon::Environment do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
it "raises if no env file was found" do
|
57
|
-
File.
|
57
|
+
File.stub(:exists?)
|
58
58
|
expect{ subject.require_environment }.to raise_error(Teaspoon::EnvironmentNotFound)
|
59
59
|
end
|
60
60
|
end
|
@@ -21,9 +21,9 @@ describe Teaspoon::Formatters::BaseFormatter do
|
|
21
21
|
describe "#log_coverage" do
|
22
22
|
|
23
23
|
it "logs the coverage information" do
|
24
|
-
|
25
|
-
Teaspoon::Coverage.should_receive(:new).with("_data_").and_return(
|
26
|
-
|
24
|
+
double = double(reports: nil)
|
25
|
+
Teaspoon::Coverage.should_receive(:new).with("_data_").and_return(double)
|
26
|
+
double.should_receive(:reports).and_return("_reports_")
|
27
27
|
STDOUT.should_receive(:print).with("_reports_")
|
28
28
|
subject.send(:log_coverage, "_data_")
|
29
29
|
end
|
@@ -7,7 +7,7 @@ describe Teaspoon::Instrumentation do
|
|
7
7
|
|
8
8
|
subject { Teaspoon::Instrumentation }
|
9
9
|
|
10
|
-
let(:asset) {
|
10
|
+
let(:asset) { double('asset', source: nil, pathname: 'path/to/instrument.js') }
|
11
11
|
let(:response) { [200, {"Content-Type" => "application/javascript"}, asset] }
|
12
12
|
let(:env) { {"QUERY_STRING" => "instrument=true"} }
|
13
13
|
|
@@ -66,11 +66,12 @@ describe Teaspoon::Instrumentation do
|
|
66
66
|
|
67
67
|
describe ".add_to" do
|
68
68
|
|
69
|
-
let(:asset) {
|
69
|
+
let(:asset) { double(source: source, pathname: 'path/to/instrument.js') }
|
70
70
|
let(:source) { "function add(a, b) { return a + b } // ☃ " }
|
71
71
|
|
72
72
|
before do
|
73
73
|
Teaspoon::Instrumentation.stub(:add?).and_return(true)
|
74
|
+
asset.should_receive(:clone).and_return(asset)
|
74
75
|
|
75
76
|
File.stub(:open)
|
76
77
|
subject.any_instance.stub(:instrument).and_return(source + " // instrumented")
|
@@ -82,7 +83,7 @@ describe Teaspoon::Instrumentation do
|
|
82
83
|
end
|
83
84
|
|
84
85
|
it "writes the file to a tmp path" do
|
85
|
-
file =
|
86
|
+
file = double('file')
|
86
87
|
File.should_receive(:open).with(@output, "w").and_yield(file)
|
87
88
|
file.should_receive(:write).with("function add(a, b) { return a + b } // ☃ ")
|
88
89
|
subject.add_to(response, env)
|
@@ -31,7 +31,7 @@ describe Teaspoon::Runner do
|
|
31
31
|
|
32
32
|
it "asks each formatter if it needs to suppress logs" do
|
33
33
|
Teaspoon.configuration.should_receive(:suppress_log).and_return(false)
|
34
|
-
subject.formatters = [
|
34
|
+
subject.formatters = [double(suppress_logs?: true)]
|
35
35
|
expect(subject.suppress_logs?).to be(true)
|
36
36
|
end
|
37
37
|
|
@@ -24,7 +24,7 @@ describe Teaspoon::Server do
|
|
24
24
|
|
25
25
|
it "starts a rack server" do
|
26
26
|
STDOUT.should_receive(:print).with("Starting the Teaspoon server...\n")
|
27
|
-
server =
|
27
|
+
server = double(start: nil)
|
28
28
|
Thread.stub(:new) { |&b| @block = b }
|
29
29
|
|
30
30
|
Rack::Server.should_receive(:new).and_return(server)
|
@@ -53,7 +53,7 @@ describe Teaspoon::Server do
|
|
53
53
|
|
54
54
|
Rack::Server.should_receive(:new) do |options|
|
55
55
|
options.should include(:server => :cgi)
|
56
|
-
end.and_return(
|
56
|
+
end.and_return(double(start: nil))
|
57
57
|
|
58
58
|
subject.start
|
59
59
|
@block.call
|
@@ -78,11 +78,11 @@ describe Teaspoon::Server do
|
|
78
78
|
describe "#responsive?" do
|
79
79
|
|
80
80
|
before do
|
81
|
-
subject.instance_variable_set(:@thread,
|
81
|
+
subject.instance_variable_set(:@thread, double(join: nil))
|
82
82
|
end
|
83
83
|
|
84
84
|
it "checks a local port to see if a server is running" do
|
85
|
-
socket =
|
85
|
+
socket = double(close: nil)
|
86
86
|
TCPSocket.should_receive(:new).with("127.0.0.1", 31337).and_return(socket)
|
87
87
|
socket.should_receive(:close)
|
88
88
|
subject.wait_until_started
|
data/spec/teaspoon/suite_spec.rb
CHANGED
@@ -24,7 +24,14 @@ describe Teaspoon::Suite do
|
|
24
24
|
it "return a hash with the suite name and path" do
|
25
25
|
results = Teaspoon::Suite.resolve_spec_for("fixture_spec")
|
26
26
|
expect(results[:suite]).to eq("default")
|
27
|
-
expect(results[:path]).to include("base/fixture_spec.")
|
27
|
+
expect(results[:path].first).to include("base/fixture_spec.")
|
28
|
+
end
|
29
|
+
|
30
|
+
it "returns a hash with the suite name and an array of paths if a directory is given" do
|
31
|
+
results = Teaspoon::Suite.resolve_spec_for("base")
|
32
|
+
expect(results[:suite]).to eq("default")
|
33
|
+
dirs = ["base/fixture_spec.", "base/runner_spec.", "base/teaspoon_spec"]
|
34
|
+
expect(dirs.all? { |path| results[:path].grep(/#{path}/)[0] }).to be_true
|
28
35
|
end
|
29
36
|
|
30
37
|
end
|
@@ -51,12 +58,6 @@ describe Teaspoon::Suite do
|
|
51
58
|
|
52
59
|
end
|
53
60
|
|
54
|
-
describe "#use_require" do
|
55
|
-
it "returns an boolean" do
|
56
|
-
expect(subject.use_require).to eq(false)
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
61
|
describe "#stylesheets" do
|
61
62
|
|
62
63
|
it "returns an array of stylesheets" do
|
@@ -109,21 +110,17 @@ describe Teaspoon::Suite do
|
|
109
110
|
end
|
110
111
|
|
111
112
|
describe "#spec_javascripts_for_require" do
|
113
|
+
|
114
|
+
let(:files) { ['/path/file1.js.coffee', 'path/file2.coffee', 'file3.coffee.erb', 'file4.js.erb' ] }
|
115
|
+
|
112
116
|
before do
|
113
|
-
subject.should_receive(:specs).and_return(
|
114
|
-
test/js_ext.js.coffee
|
115
|
-
test/coffee_ext.coffee
|
116
|
-
test/coffee_and_erb_ext.coffee.erb
|
117
|
-
test/js_and_erb_ext.js.erb
|
118
|
-
))
|
117
|
+
subject.should_receive(:specs).and_return(files)
|
119
118
|
end
|
119
|
+
|
120
120
|
it 'returns an array of spec javascripts without .js and Teaspoon prefix' do
|
121
|
-
|
122
|
-
expect(result[0]).to eq 'test/js_ext'
|
123
|
-
expect(result[1]).to eq 'test/coffee_ext'
|
124
|
-
expect(result[2]).to eq 'test/coffee_and_erb_ext'
|
125
|
-
expect(result[3]).to eq 'test/js_and_erb_ext'
|
121
|
+
expect( subject.spec_javascripts_for_require ).to eq(['/path/file1', 'path/file2', 'file3', 'file4'])
|
126
122
|
end
|
123
|
+
|
127
124
|
end
|
128
125
|
|
129
126
|
describe "#suites" do
|
@@ -195,8 +192,8 @@ describe Teaspoon::Suite do
|
|
195
192
|
expect(subject.include_spec_for?(files.first)).to eq(files.first)
|
196
193
|
end
|
197
194
|
|
198
|
-
it "returns
|
199
|
-
expect(subject.include_spec_for?('fixture_spec')
|
195
|
+
it "returns a list of specs when the file name looks like it could be a match" do
|
196
|
+
expect( subject.include_spec_for?('fixture_spec').any? { |file| file.include?('fixture_spec.coffee') }).to be_true
|
200
197
|
end
|
201
198
|
|
202
199
|
it "returns false if a matching spec isn't found" do
|