와 입력 필드의 존재를 확인 내가 다음 양식 필드가 있다고 가정하자?카피 바라
다음 더 일치를 찾을 수 없습니다 말한다 :
it { should have_field("name")}
"page[name]"
을 시도,하지만 RSpec에 나에게이 오류 제공 :
it { should matcher }
RSpec expects the matcher to have a #description method. You should either add a String to the example this matcher is being used in, or give it a description method. Then you won't have to suffer this lengthy warning again.
이것을 일으키는 라켓? 미리 감사드립니다. 해당 페이지를 제공
그것을 알아 냈어. 나는이 일을 알고 있었지만 have_field 메서드를 사용하려고했다. 예를 들어 여분의 구불 구불 한 예제 밖에서 have_selector로 오류를 던지고 있지만 ... 혼란 스러웠다. 내 꺼져. 감사합니다 비록 –