aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxedconsulting.com>2016-04-28 07:49:37 +0100
committerAndrew White <andrew.white@unboxed.co>2016-05-05 05:07:58 +0100
commite77588d4e14f4720db5bfce5aff7cd5ab3218a29 (patch)
tree594b97960c7fec7bf0f340c039039e425b454025 /activesupport
parent3bed679670dd8348ffc348509a653677c6ecb7f3 (diff)
downloadrails-e77588d4e14f4720db5bfce5aff7cd5ab3218a29.tar.gz
rails-e77588d4e14f4720db5bfce5aff7cd5ab3218a29.tar.bz2
rails-e77588d4e14f4720db5bfce5aff7cd5ab3218a29.zip
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.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index f38b225b38..071f690e12 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -10,6 +10,7 @@ require 'active_support/core_ext/string/strip'
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