Daha önce Mysql veritabanı kullanıyordum ve Postgresql'e geçmeye karar verdim ve şimdi rspec kullanarak testlerimi çalıştırdığımda çok fazla uyarı ve uyarı alıyorum.Rspec: Testler çalışırken uyarıları ve bildirimleri nasıl bastırırız?
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!"
Bunu nasıl önleyebilirim? Bir yolu var mı?
sen progress' --format 'bayrağıyla bu diyorsun? belki senin .rspec dosyasında? –
Hayır .rspec dosyasında sadece '--colour', 'ddb' ve '--format d' var. –
Bakınız: https://github.com/rspec/rspec-rails/issues/58 ve bu konuda önerilen bir DB temizleyici kullanmayı düşünün. –