Преди използвах 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
в моя .rspec файл. - 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