이전에 MySQL 데이터베이스를 사용하고 있었고 Postgresql로 전환하기로 결정했으며 rspec을 사용하여 테스트를 실행할 때 많은 경고와주의 사항이 나타납니다.Rspec : 테스트를 실행할 때 경고 및 알림을 표시하지 않으려면 어떻게해야합니까?
WARNING: there is already a transaction in progress
NOTICE: there is no transaction in progress
should has link "Suspender"
WARNING: there is already a transaction in progress
NOTICE: there is no transaction in progress
should has css "title" with text "Suspensão de anúncio"
WARNING: there is already a transaction in progress
NOTICE: there is no transaction in progress
should has css "h1" with text "Awesome job!"
어떻게 억제 할 수 있습니까? 방법이 있니?
당신은 progress' 들인다 --format '플래그로 호출하고 있습니까? 어쩌면 .rspec 파일에서? –
아니요. 내 .rspec 파일에'--colour','--drb' 및'--format d' 만 있습니다. –
참조 : https://github.com/rspec/rspec-rails/issues/58 및 문제에서 제안 된대로 DB 클리너 사용을 고려하십시오. –