I am new to RSPEC. I have wrote a RSPEC code named result_spec.rb as below: describe '#grouped_scores' do subject { result.grouped_scores } let(:result) { create(:result, user: user) } its(:keys) { is_expected.to eq [1] } its([1]) { is_expected.to be_within(0.001).of(6) } end Then when I wrote the method in the model named result.rb, the sample code is as below: def grouped_scores s = 0 if score >
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く