Раньше я использовал базу данных 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!"
Как я могу это подавить? Есть ли способ, верно?
--format progress
? может быть, в вашем файле .rspec? - person Noah Clark   schedule 16.06.2012--colour
,--drb
и--format d
. - person Kleber S.   schedule 16.06.2012database_cleaner
gem. - person Kleber S.   schedule 16.06.2012config.use_transactional_examples = true
в false и посмотрите, не сломается ли это? - person Noah Clark   schedule 16.06.2012config.use_transaction_fixtures = false
останавливает предупреждения и уведомления. Спасибо. - person Kleber S.   schedule 16.06.2012