Rspec: как отключить предупреждения и уведомления при выполнении тестов?

Раньше я использовал базу данных Mysql и решил переключиться на Postgresql, и теперь, когда я запускаю свои тесты с использованием 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!"

Как я могу подавить это? Есть способ, верно?

10
задан Cœur 11 August 2017 в 05:39
поделиться