A CoffeeScript interactive console (REPL) as a webpage.
A CoffeeScript interactive console (REPL) as a webpage.
以ä¸ã®SlideShareã大å¤åèã«ãªã£ãã®ã§åå¿ãå ¼ãã¦CoffeeScriptçãæ¸ãã¦ã¿ãã JSéçºã«ãããTDDã¨èªåãã¹ããã¼ã«å©ç¨ã®åæ http://www.slideshare.net/KojiNakamura/jstdd ç®æ¬¡ 1. Matcheræ¦è¦³ 2. beforeEach / afterEach 3. Spy 4. Async Test 5. jQuery code test 1. Matcheræ¦è¦³ notã§å¦å®ã®Matcherã¨ãªã expect(x).toEqual(y) expect(x).not.toEqual(y) expect(x).toBe(y) toBe㯠=== ã«ããçå¤ãã§ã㯠expect(x).toMatch(pattern) expect(x).toBeDeï¬ned() expect(x).toBeUndeï¬ned() expec
First we create a rails app without Test Unit (as we will use rspec as per Jasmine). Let's call it party_time: rails new party_time -T cd party_time rm public/index.html Let's start with Jasmine. I played around with a couple of methods of integrating it but settled on using Jasminerice, which has worked superbly. This tutorial uses version 0.0.8, but I imagine it will continue to work for later v
ã¡ã£ã¡ããCoffeeScriptã®æ¬
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}