rspec仍然是个新手,无法通过以下测试(问题区域'it‘应该以正确的顺序“do”块进行正确的处理):describe User do
FactoryGirl.create(:treating, user: @user, created_at: 1.day.ago),我知道我需要在测试中嵌入“requestor”和“req
我试图在rspec测试中使用FactoryGirl函数create和build,而不是每次指定FactoryGirl名称空间:create而不是FactoryGirl::create。我认为我可以通过如下扩展FactoryGirl来实现这一点,但是我总是得到一个NoMethodError。RSpec.configure do |c|end
describe 'my thing' do