3 ms·
I looked at vows and Jasmine and a few of the other RSpec-inspired libraries for Javascript/CoffeeScript. What I determined was that Javascript simply doesn't h
by snprbob86 15y ago
I looked at vows and Jasmine and a few of the other RSpec-inspired libraries for Javascript/CoffeeScript. What I determined was that Javascript simply doesn't have the necessary features to properly replicate RSpec's syntax. For example, if you want to run tests against Internet Explorer, you can't use any method_missing or noSuchMethod magic.
I adapted bits and pieces of CoffeeScript's cakefile. It basically defines `function test(description, runTest)` and uses the builtin node assert module. Simple and got the job done:
https://github.com/jashkenas/coffee-script/blob/master/Cakefile#L151 https://github.com/jashkenas/coffee-script/blob/master/Cakef...