2019-02-11から1日間の記事一覧

Rspec 基本

Rspecについて セットアップ.rspec--require spec_helper--format documentation describe "何についてのテストか" do context "どの状態のテストか" do it "期待する動作" do end endend このような形でネストして書くことがデフォルトの形。beforeをdescri…