提交 e77588d4 编写于 作者: A Andrew White 提交者: Andrew White

Fix to_yaml test when run individually

The to_yaml method is undefined when running the test as:

  $ ruby -I lib:test test/core_ext/string_ext_test.rb

Doesn't fail when running rake test:isolated presumably because
something else has required 'yaml' already.
上级 3bed6796
......@@ -10,6 +10,7 @@
require 'active_support/core_ext/string/output_safety'
require 'active_support/core_ext/string/indent'
require 'time_zone_test_helpers'
require 'yaml'
class StringInflectionsTest < ActiveSupport::TestCase
include InflectorTestCases
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册