Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

Structure of RSpec tests Disclaimer Assume that you know RSpec. If not, you'll still get some value. Overview describe vs. context context naming before vs. let before & context let vs. subject before vs. let subject & describe A typical test describe Classroom do context "#a_mess?" do it "should return true after a party" do classroom = Classroom.new classroom.throw_pizza_party classroom.a_mess?.
I use RSpec in all my projects. It’s really hard to overemphasize how helpful it is and how much easier becomes your life if you have good specs coverage. But its outstanding flexibility enables many ways to make your specs awful: horribly slow, over-bloated, even non-readable sometimes. I do not want to teach you BDD and RSpec here, but instead I will give you some ideas how to improve your specs
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く