From 98a72a5a4cca21cce343e44f27330ed31ff8c608 Mon Sep 17 00:00:00 2001 From: Mike Henry Date: Mon, 10 Jun 2013 15:34:58 -0600 Subject: [PATCH] Update about_strings.rb Update single character representation test for Ruby 2. --- src/about_strings.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/about_strings.rb b/src/about_strings.rb index 2496982..bb28593 100644 --- a/src/about_strings.rb +++ b/src/about_strings.rb @@ -159,8 +159,8 @@ EOS end end - in_ruby_version("1.9") do - def test_in_ruby_1_9_single_characters_are_represented_by_strings + in_ruby_version("1.9", "2") do + def test_in_ruby_1_9_and_2_single_characters_are_represented_by_strings assert_equal __('a'), ?a assert_equal __(false), ?a == 97 end