提交 b5963460 编写于 作者: G Gannon McGibbon

Remove bundler warnings from bin/setup output

上级 0b6d2189
...@@ -43,18 +43,20 @@ def test_bin_setup_output ...@@ -43,18 +43,20 @@ def test_bin_setup_output
# Ignore line that's only output by Bundler < 1.14 # Ignore line that's only output by Bundler < 1.14
output.sub!(/^Resolving dependencies\.\.\.\n/, "") output.sub!(/^Resolving dependencies\.\.\.\n/, "")
# Suppress Bundler platform warnings from output
output.gsub!(/^The dependency .* will be unused .*\.\n/, "")
assert_equal(<<-OUTPUT, output) assert_equal(<<~OUTPUT, output)
== Installing dependencies == == Installing dependencies ==
The Gemfile's dependencies are satisfied The Gemfile's dependencies are satisfied
== Preparing database == == Preparing database ==
Created database 'db/development.sqlite3' Created database 'db/development.sqlite3'
Created database 'db/test.sqlite3' Created database 'db/test.sqlite3'
== Removing old logs and tempfiles == == Removing old logs and tempfiles ==
== Restarting application server == == Restarting application server ==
OUTPUT OUTPUT
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册