{"width":"100%","height":"190","url":"https://tototoshi.hatenablog.com/entry/20110925/1316958367","author_url":"https://blog.hatena.ne.jp/tototoshi/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftototoshi.hatenablog.com%2Fentry%2F20110925%2F1316958367\" title=\"Specs2\u3092\u8a66\u3059(8) - tototoshi \u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Single step Given/When/Then \u306e3\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u306f GivenThen \u30671\u3064\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 import org.specs2._ import specification._ class GivenThenSpec extends Specification { def is = \"given the name: ${eric}, then the age is ${18}\" ! new GivenThen { def extract(text: String) = { val (name, age) = extract2(text) age.toInt \u2026","provider_url":"https://hatena.blog","author_name":"tototoshi","title":"Specs2\u3092\u8a66\u3059(8)","type":"rich","version":"1.0","provider_name":"Hatena Blog","blog_title":"tototoshi \u306e\u65e5\u8a18","published":"2011-09-25 22:46:07","blog_url":"https://tototoshi.hatenablog.com/","categories":["Scala"]}