加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails-3 – Rspec:运行测试时如何抵制警告和通知?

发布时间:2020-12-16 22:15:05 所属栏目:百科 来源:网络整理
导读:之前我正在使用Mysql数据库,并决定切换到 Postgresql,现在,当我使用rspec运行我的测试时,我收到了很多警告和通知. WARNING: there is already a transaction in progressNOTICE: there is no transaction in progress should has link "Suspender"WARNING: t
之前我正在使用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!"

我该怎么抑制呢?有办法吗?

解决方法

你设置了:config.use_transactional_examples = true为false,看看是否打破了什么?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读