요소가 존재하지 않는지 어떻게 테스트 할 수 있습니까? 나는 다음과 같은 시도했지만 통과 테스트 대신에 textarea#Question1Text does not exist
오류가 발생합니다.RSpec에서 요소가 존재하지 않는지 테스트하는 방법은 무엇입니까?
it "should not have question 1" do
find('textarea#Question1Text').should_not be
end
it { should_not find('textarea#Question1Text') }