我有一个像这样的规格 it_behaves_like SharedClass, MyClass.new在我的共享示例规范中,我有 before do endend
在MyClass实例中,有一些方法不能存根到shared_examples_for块中,所以我希望在将它们传递到it_behaves_like语句之前先
我的问题模型包含学生可以回答的问题的提示和答案选择。它包括名为:choice_0、:choice_1、:choice_2、:choice_3、:choice_4和:choice_5的列。correct_array.push(these_params[:choice_0]) if !these_params[:choice_0].blank?correct_array.push(these_