Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
次ä¸ä»£ãã¹ãã£ã³ã° ãªã¼ãã¡ã¼ã·ã§ã³ã§ ã½ããã¦ã§ã¢ãæé«ã®å質㫠ShouldBeeã¯ç¡æã§ä½¿ããã¦ã§ããµã¤ãã®ãã¹ãèªååãæ¯æ´ãããã¼ã«ã§ãã ããã¾ã§æåã§å®æ½ãã¦ãããã¹ãã®æé æ¸ãæ¥æ¬èªã§æ¸ãã¦å®è¡ããã ã!
ã¤ã³ãã©é¨ã®èäºï¼@ryot_a_raiï¼ã§ãããã®è¨äºã§ã¯ã¤ã³ãã©ã®æ¯ãèããã¹ãã®ãã¼ã«ã§ããInfratasterã使ã£ã¦ãªãã¼ã¹ãããã·ã®è¨å®ã®ãã¹ãããã¦ã¿ããã¨æãã¾ãã Infratasterã¨ã¯ Infratasterã¯ã¤ã³ãã©ã®æ¯ãèãããã¹ããããã¬ã¼ã ã¯ã¼ã¯ã§ãRSpecã®ãã¹ããã«ãã¨ãã¦æ©è½ãã¾ããä¾ãã°ã ç¹å®ã®ãããä»ãã®HTTPãªã¯ã¨ã¹ããéä¿¡ããæã«ããã¬ã¹ãã³ã¹ããããè¿ã£ã¦ãããã¨ããã¹ããã Capybaraã使ã£ã¦å®éã®Webãã©ã¦ã¶ä¸ã§ã®æåããã¹ããã MySQLã®SHOW VARIABLESã®çµæããã¹ããã ã¨ãã£ããã¨ãå¯è½ã«ãªãã¾ãã ç´°ããæ¦è¦ã«ã¤ãã¦ã¯ãã¡ãã®ã¹ã©ã¤ããREADMEãã覧ãã ããã Serverspecã¨ã®éã ã¤ã³ãã©ã®ãã¹ãã¨ããã°Serverspecãæåãã¨æãã¾ãããInfratasterã¯Serversp
Bash, Shellscript, Testing Framework, Linux, ShellTL;DRtoromoti/chocomint.sh(github)æ°ã«æåã«è¶ 絶便å©ãªBashã®ãã¹ããã¼ã«*1ããªãªã¼ã¹ãããã¸ã£ã³ã«çã«ã¯sstephenson/bats(github)ãmpapis/tf(github)ã¨åããããªãã®ãä¹±æ´ã«è¨ãã°ããã®2ã¤ãæãåããããããªãã¼ã«ãåæ©Bashã§æ¸ããã³ãã³ãã©ã¤ã³ãã¼ã«ã®ãã¹ãã®ããã«ãªã«ããããã®ã¯ãªããã¨ãã¼ã«ãæ¢ãããã好ã¿ã®ãã®ãè¦ã¤ãããªãã£ãããã使ç¨æããããRubyãªãã¦ã¤ã³ã¹ãã¼ã«ããããªããããã£ã¨è¨ãã°å®éã«åãã¹ã¯ãªããã®ãªãã®ã³ã¡ã³ãæã«ãã¹ããæ¸ãããã¨ãããºãã©ãªåã®ããã®ãã¼ã«ããã¨ãã°ããã¾ãä¾ã¨ãã¦ã¯è¯ããªããã§ãããããããã¹ã¯ãªãããããã¨ããã #!/usr/bin/env choco
ãã¹ãããããªãã§ãããããã¹ãããããªãã§ãããã ããã¾ããã¡ãã¨ç°å¢ãæ´ã£ã¦ãããã¹ãæ¸ãã®ãããã¨æ¥½ã ããããã°ã©ã æ¬ä½æ¸ãã¦ããã¨ãã®å®å¿æãå ¨ç¶éãã®ã§ããããªãã®è¦æ¨¡ã®ããã°ã©ã ãæ¸ãæã¯è¯ããã ãã©ãã§ãã2ã3æ¥ã§æ¸ããããªã¡ãã£ã¨ãããã©ã¦ã¶å´ã ãã®JavaScriptããã°ã©ã ã¨ããéçºç°å¢ãã¤ã³ã¹ãã¼ã«ããã¦ããªãPCã§ãæ°è»½ã«ãã¹ãã§ããªãããªãã¨ããã®ãä»åã®ãã¼ãã ããã ãã¡ã¸ã£ã¼ãªJavaScriptãªãã ãããã¹ããç°¡åã ããã¨æã£ã¦èª¿ã¹ãã¨ãããã°ã¨ãã®ãµã³ãã«ãè¦ã¦ãNode.jsåæã ã£ãããMochaãè¯ãããã ã¨ä½¿ããã¨ãããã¢ãµã¼ã·ã§ã³ã©ã¤ãã©ãªã¯å¥ã ã¨ããUIã¯browserifyããã®ï¼ãããªãã®ï¼ã¨ããããããããããã¤ã¯ã®æ¯ã«ããã¾ã£ã¦å¿ æ»ã§åãé²ããæãããã¹ãåå¿è ã®äººã«ãã¹ãã³ã¼ãã®æ¸ãæ¹ã説æããã¨ããªããããã©ãã¤ãã¾ã§ãã
Testing Sinatra with Rack::Test All examples in the following sections assume that Test::Unit is being used in an attempt to be as general as possible. See the Test Framework Examples for information on using the test helpers in other testing environments. To use the Rack::Test library used when you require rack/test, youâll need to install the rack-test gem:
Contents unittest ãå¹æçã«ä½¿ãããã®è¦æ¸ ç®ç ã«ã¼ã«: ãã¹ã対象ã®ã¢ã¸ã¥ã¼ã«(module-under-test)ããã¹ãã¢ã¸ã¥ã¼ã«ã«ç´æ¥importããªã ã¬ã¤ãã©ã¤ã³: ã¢ã¸ã¥ã¼ã«ã¹ã³ã¼ãã§ã®ä¾åãæå°éã«ãã ã«ã¼ã«: åãã¹ãã¡ã½ããã§ã¯ãï¼ã¤ã®äºå®ã ãã確èªãã ã«ã¼ã«ï¼ ãã¹ãã¡ã½ããã¯å 容ã表ãããã«ããã ã¬ã¤ãã©ã¤ã³: setupã¯ãã«ãã¼ã¡ã½ããã§æä¾ãããããã¹ãã±ã¼ã¹ã®selfã§å ±æããã®ã¯ããããã ã¬ã¤ãã©ã¤ã³: ãã£ã¯ã¹ãã£ã¯å¯è½ãªéãç°¡æ½ã« ã¬ã¤ãã©ã¤ã³ï¼ ããã¯ãã¬ã¸ã¹ããªãªã©ã®å©ç¨ã¯æ³¨ææ·±ã ã¬ã¤ãã©ã¤ã³: ä¾åé¢ä¿ãæ確ã«ããããã«ã¢ãã¯ãå©ç¨ãã ã«ã¼ã«: ãã¹ãã¢ã¸ã¥ã¼ã«éã§ããã¹ããå ±æããªã ã¾ã¨ã https://twitter.com/tokibito/status/412074246026698753 ã¨ãããã¨ã§
YAPC Asia 2013
ããã¯äººããããã®ã³ã¼ãã®æ¸ãæ¹ã«ä¾åããã®ã§å¿ ãããçæªã¨ããããã§ã¯ãªããããããããã風ã«æ¸ãã¦ãã¾ãã人ãããã ããããããã®è©±ã ä½ãè¨ããããã¨ããã¨ãèªåã®å ´åãããç¨åº¦ã¯é ã®ä¸ã§ã¾ã¨ãã¤ã¤ã¨ããããæãåããã¦æ¸ãã¦ã¿ãâæ°ã«å ¥ããªãã£ãããå¾ãããããã§ã¯ããããã¨æã£ããã¤ã³ã¿ãã§ã¼ã¹å¤ãããã¿ãããªãã¨ãç¹°ãè¿ããªãããè¦ã¯åæã«ãªãã¡ã¯ã¿ãªã³ã°ããªããã³ã¼ããæ¸ãã¦ããã®ã§ãåãããå³å¯ããããã¹ããæ¸ãã¦ãã¾ãã¨ææ»ããå¤ããªã£ã¦éå¹ççãªã®ã§ããã ä¾ãã°ãã¨ããJavaScriptã®ã¡ã½ããã®è¿ãå¤ããããªæãã ã£ãã¨ãããã { valid: true, foo: 10, bar: 0 } ã§ã"valid"ã®é¨åã¯ã»ã¼ééããªãããã§è¡ããã©ã"foo"ã¨"bar"ã®é¨åã¯å¾ããç¡ãããããããªãããããã¯keyåãå¤ãããããããªãããããã¯ä½ãå¥ã®ke
2013-07-14 git push åã«èªåã§ãã¹ããåãã git git push ããåã«ãã¹ããåããããã pull request ã CI ã«ã¯ãããã¦æ²ããæãããããã¨ãå¤ãã£ãã®ã§ãå¿ããªãããã«èªååããã git ã«ã¯ pre-push hook ã 1.8.2 ããå°å ¥ãããã 以å temporary ãªã³ããããå«ã¾ããå ´åãpush ããããã¨ããã®ãä½ã£ã¦ã¨ã¦ãéå®ããã git-now ããã³ãããã®èª¤éä¿¡ããµãã - tomykaira makes love with codes ãã¹ããåãã®ã¯ãã§ãã¯ã«æéãããããã©ãããã§åæ»ãªéçºã¨ç¶ºéºãªã³ãããã°ã©ããä¿é²ããããªãã30ç§ã»ã©ã¾ã¤ä¾¡å¤ã¯ããã¨æãã .git/hooks/pre-push ã®å 容ã¯æ¬¡ã®ãããªæãã以åã®ã«è¶³ããã¨ãããããé¢ä¿ãªããããªã¨ãããæ¶ããã®ã§ãä½è¨ãªãã®ãæ··
ã¿ãªããã timecop 使ã£ã¦ã¾ããï¼timecop ã¯ããã¹ãã§æéãæ±ãæã«å¿ é ã¨è¨ããã©ã¤ãã©ãªã§ãããã¹ãä¸ã®æéãæ¢ããã(Timecop.freeze)æéã移åãããã(Timecop.travel)ã§ãã¾ããä¼¼ããããªã©ã¤ãã©ãªã¨ã㦠delorean ãããã¾ããRailsCasts ã§ãç´¹ä»ããã¦ãã¾ãã ãã¦ãtimecop ã® README ã«ã¯ä¸è¨ã®ãããªã³ã¼ãä¾ãæ¸ãã¦ããã¾ãã t = Time.local(2008, 9, 1, 10, 5, 0) Timecop.travel(t) åã¯ããã¾ã§ä¸è¨ã®ããã«æ¸ãããæ¹æ³ãç¡ãã¨æã£ã¦ããã®ã§ãããä»æ¥ä¸è¨ã®ããã«ãæ¸ãããã¨ã«æ°ã¥ãã¾ããã Timecop.travel(2008, 9, 1, 10, 5, 0) ã¾ãããããã¯ã使ããã¨ãã§ãã¾ãã Timecop.travel(2008, 9, 1,
ç§ãä»å¹´ã¤ãã³ãã§åã£ãããã°ã©ãã¯ãã¶ã50人è¿ããã¦ããã®åº¦ã«JSã®ãã¹ãã«ã¤ãã¦è©±ã伺ã£ã¦ããã®ã§ãããã¡ããã¨JSã®ãã¹ãæ¸ãã¦ã人ã¯1人ãããã¾ããã§ãããhtml5ã«ã³ãã¡ã¬ã³ã¹ã®ä¼å ´ã§ãªã¼ãã£ã¨ã³ã¹ã«èããæãjsã®ãã¹ããæ¸ãã¦ãã人ã¯2%ããããããã¾ããã§ããããã®å¤ãããæ¸ããæ¹ãããã£ã¦ã®ã¯ããã£ã¦ããã ãã©ãããã¿ãããªæãã§ããã ãªãæ¸ããªããï¼ ãã¹ãã³ã¼ããæ¸ãã®ãããã©ãã ãã ãã¹ãã³ã¼ããä¿®æ£ããã®ãããã©ãã ãã éåæãªãã¹ããæ¸ãã«ãããã ãããããã®åé¡è§£æ±ºãããããã¹ãèªååãããã ãã¹ããæ¸ããã«ãã¹ãã®èªååï¼ãããªãã¨ã§ããã®ãã Porkyãªãã§ãããï¼ ã©ããã£ã¦ä½¿ãã®ï¼ jsãã¡ã¤ã«ã4ã¤èªã¿è¾¼ãã ã https://github.com/puriketu99/porkyããcloneãã¦ãå¿ è¦ãªãã¡ã¤ã«ãèªã¿è¾¼ã
Vixie cronå½¢å¼ã®crontabãparseããã¢ã¸ã¥ã¼ã«ããªãªã¼ã¹ãã¾ããã Vixie cronã¨è¨ãã°ããããããããã«ãã«ãèããã¨ãdisãããããªä»£ç©ã§ããããªãã ããã ã§å©ç¨ãã¦ãã人ã¯å¤ãã§ãããããåã使ã£ã¦ãã¾ãã https://metacpan.org/release/Parse-Crontab æè¿æºããããã¸ã§ã¯ãã§ã¯crontabã¯ãªãã¸ããªç®¡çãã¦ããã®ã§ãããããããã¾ãã¡ããã¨ãã¹ãããã¦ãªãã£ãã®ã§ãããã解æ¶ãã¹ãæ¸ãã¾ããã 以ä¸ã®æ§ã«ãcrontabã®ãã¹ããæ¸ããã¨ãå¯è½ã§ãã use strict; use Test::More; use Parse::Crontab; my $crontab = Parse::Crontab->new(file => 'data/crontab.txt'); ok $crontab->is_vali
You recently received an email asking you to confirm your contact details. Because you didnât confirm within 15 days, your domain was deactivated. â Final reminder: weâre holding onto your domain for an additional 7 days. After that, you wonât be able to reactivate it. To keep this domain, reactivate it as soon as possible.
æ¥é ããJavascriptã§éçºããã¦ããã®ã«ãé¢ããããã¾ããã¹ããæ¸ããªãã®ã§ãããã¯æ¬æ ¼çã«ãã¹ããæ¸ããã¨èª¿ã¹ã¦ã¿ã¾ãããJavascriptã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¨ãã£ããJsUnitãªã®ããªã¼ã¨æã£ã¦ãããã調ã¹ã¦ã¿ãã¨çµæ§ããããªç¨®é¡ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ããã£ãããã¦ããã®ä¸ã§å¾ã«äººæ°ãªã®ãã©ãããJasmineãããã Jasmine ï½ JavaScript Test ãã¬ã¼ã ã¯ã¼ã¯ ããå¼ç¨: ä»åã¯, JavaScript ã®ãã¹ããè¡ãããã®ãã¬ã¼ã ã¯ã¼ã¯Jasmine ã®ç´¹ä»ã§ãã JavaScript ã®ãã¹ãã¨ããã°, JSUnit ãæåã§ãã JSUnit ã¯, JUnit ã¨ã«ä¼¼ããããª, Matcher ãå©ç¨ã§ããããã¦ããããããã®ã§ãã, éçºãã¡ã³ããã³ã¹ãã¹ããããã¦ãã, ã¾ãWebããã¸ã§ã¯ãã«çµã¿è¾¼ã¾ãªãã¨å©ç¨ã§ããªããã¨ã ã¡ãã£
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}