我有一个Rspec的测试使用FactoryBot(FactoryGirl)如下: describe Note do
let(:note) {create(:note, title: "my test title", body: "this is the body")}
expect(note.title).to eq "my test title"
expect(n
我在rspec中有一个测试未通过,我不知道原因。测试指责以下情况: 1) SalesmenController POST #create redirect to new team
Failure/Error: params.require(:salesmen).permit(:name, :company_id)
ActionController::ParameterMiss