Jay Fields' Thoughts: Implementing an internal DSL in Ruby Rubyã§ã®DSLã®ä½ãæ¹ãexpectationsã¨ããtesting frameworkãä¾ã«ã¨ã£ã¦èª¬æãã¦ããã ãã£ã±assert_equalã£ã¦ãªãã¸ã§ã¯ãæåã£ã½ããªãã¦ã«ãã³æªãããï½ããã¯DSLã§ã«ãã³ããæ¸ããããã®ã ã å½¼ã®è¨ããããã¨ãæ¥æ¬èªã§è¶ è¦ç´ãã¦ã¿ãã ã¾ããã©ããããµãã«æ¸ããããã決ããããããªæãã«ãããã Expectations do # ãã¹ãã ãã¨ããããã㯠expect :expected do # :expectedãæå¾ ãããå¤ :expected # ãããã¯ã®è©ä¾¡çµæãå®éã®å¤ end end ããããããããRubyã¹ã¯ãªããã¨ãã¦å®è¡å¯è½ãªå½¢å¼ã«ããã ã¾ããDSLãèªã¿è¾¼ãã ãï¼å®è¡ãããï¼ãExpectatio
{{#tags}}- {{label}}
{{/tags}}