黄瓜铁轨显示不必要的输出

时间:2016-05-18 03:40:52

标签: ruby-on-rails activerecord cucumber tdd rails-migrations

当我运行bundle exec cucumber这一行“ActiveRecord :: SchemaMigration Load(0.4ms)SELECT”schema_migrations“。* FROM”schema_migrations“”打印在控制台上。

为什么?我怎么能摆脱它?

$ bundle exec cucumber
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Using the default profile...
0 scenarios
0 steps
0m0.000s
$

1 个答案:

答案 0 :(得分:0)

我正在浏览堆栈溢出,今天我 在这里找到了解决方案 - > https://stackoverflow.com/a/33987617/4394500

基本上,添加

Rails.application.configure do
  # ... 
  config.log_level = :info
end

config/environments/test.rb