
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How to set up locale in RSPEC
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How to set up locale in RSPEC
I am new to RSPEC. I have wrote a RSPEC code named result_spec.rb as below: describe '#grouped_sc... 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 >