Paul Graham / éæ¨é 訳 2006å¹´10æ æè¿ãã£ãè¬æ¼ã®å¾ã®Q&Aã§ãã¹ã¿ã¼ãã¢ããã失æãããã®ã¯ä½ãã¨ãã質åããã人ãããããã®å ´ã«ç«ã£ãã¾ã¾ä½ç§ãåç¶ã¨ãã¦ããå¾ããããä¸ç¨®ã®ã²ã£ããåé¡ãªãã¨ã«æ°ä»ãããããã¯ã¹ã¿ã¼ãã¢ãããæåãããã®ã¯ä½ãã¨ãã質åã¨ç価ãªã®ã ââ失æã®åå ã¨ãªããã¨ããã¹ã¦é¿ããããã«ããã°ãæåãããã¨ãã§ããââããã¦ããã¯ãã®å ´ã§çããã«ã¯ãã¾ãã«å¤§ããªåã ã£ãã å¾ã«ãªã£ã¦ãç§ã¯ãã®åé¡ãããããæ¹åããè¦ãã®ãæå¹ãããããªãã¨æãããã«ãªã£ãããã¹ãã§ãªããã¨ããã¹ã¦ä¸¦ã¹ããªã¹ããããã°ãããããã éã«ããã ãã§æåã¸ã®ã¬ã·ãã«å¤ãããã¨ãã§ãããããã¦ãã®å½¢ã®ãªã¹ãã®æ¹ããå®è·µããä¸ã§ä½¿ãããããããããªãããããªããã°ãªããªããã¨ããã¤ãé ã«å ¥ãã¦ããããã¯ãä½ããã£ã¦ã¯ãããªããã¨ããã¦ããã¨ãã«ããã¨æ°ä»ãã¨ããã»ãã
vim å©ç¨æã«ã¿ã¼ããã«ã¢ããªã±ã¼ã·ã§ã³ããæååã®è²¼ãä»ããè¡ãã¨åæã«ã¤ã³ãã³ããè¡ããã¦ãã¾ãã <table background="000" width="200px" > <html> <head> <title>hoge</title> </head> <body> <h1>hoge</h1> <div> hogehoge </div> </body> </html> </table>ãããã <html> <head> <title>hoge</title> </head> <body> <h1>hoge</h1> <div> hogehoge </div> </body> </html>ããã§è²¼ãä»ãåã«ä»¥ä¸ã®ã³ãã³ããå®è¡ã :set pastepaste ã¢ã¼ãã«ãªã£ã¦ã ã³ãã¼ããç¶æ ã®æååã®ã¤ã³ãã³ãã®ã¾ã¾ã§è²¼ãä»ããã§ããã 以ä¸ã®æ¹æ³ã§ãã¤ã±ãã :a!
I know that in Capybara, you can do something like this: page.should have_css("ol li", :count => 2) However, assuming that page has for instance only one matching element, the error is not very descriptive: 1) initial page load shows greetings Failure/Error: page.should have_css("ol li", :count => 2) expected css "ol li" to return something Instead of this rather obscure error message, is there a
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}