1
保留中のスケルトン(空の)サンプルを使用したいと思います。通常、成功(緑色)として扱われますが、これはこのような誤解を招きます。スケルトンの例をRSpecの保留として使用することはできますか?
describe "" do
# This is displayed as **not pending** but succeeded.
it "A skeleton example 1." do
end
# If you want to display result as a pending,
# need to implement the procedure explicitly.
it "A skeleton example 2." do
skip "Not Implemented."
end
end
書き込むには、毎回skip ...
に書くのは非常に辛いです...だから私はそれを避けます。
eeeeeexcellent!大変ありがとうございます。 Rspecはとてもいいです。私は後でこの答えを受け入れます(stackoverflowで、10分以内の受け入れは禁じられています...) –
@shouhよろしくお願いします! – unkmas