ブロック先をモックにしてBehavior Verification. ブロックだと無名のメソッドになるから、名前の「do」が重要じゃなくなる。 class StringToSortedIntArrayFilter def run(message) yield(message.split(",").collect{ |node| node.to_i }.sort) end end de…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.