From 57d06d7b3f019bf3823548630da41c785828da22 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Sep 2013 14:33:56 +0000 Subject: test_string.rb: remove duplicated code * test/ruby/test_string.rb (TestString#test_frozen_dstring): remove duplicated assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_string.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test') diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index faf28f5c8e..2e2872b9f8 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -2223,13 +2223,7 @@ class TestString < Test::Unit::TestCase end def test_frozen_string_cannot_be_adjacent - assert_raises(SyntaxError) do - eval(%{ - "hello"f "world" - }) - end - - assert_raises(SyntaxError) do + assert_raise(SyntaxError) do eval(%{ "hello"f "world" }) -- cgit v1.2.3