diff options
author | SHIBATA Hiroshi <shibata.hiroshi@gmail.com> | 2014-02-18 09:47:40 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <shibata.hiroshi@gmail.com> | 2014-02-18 09:47:40 +0900 |
commit | f798c282502c7cf049401df35de19cf9707496ab (patch) | |
tree | 58a9f5e4d25db85f85291ed6c940c7b9d52c0ff4 /test | |
parent | d5972dc5bc436214c39f40dad8634f4b2b2f2f7c (diff) | |
download | psych-f798c282502c7cf049401df35de19cf9707496ab.tar.gz |
remove unused variables
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_string.rb | 2 | ||||
-rw-r--r-- | test/psych/test_yaml.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb index 01fc0e4..f1f061b 100644 --- a/test/psych/test_string.rb +++ b/test/psych/test_string.rb @@ -137,7 +137,7 @@ string: &70121654388580 !ruby/string ivar = "on rock and roll" food.instance_variable_set(:@we_built_this_city, ivar) - str = Psych.load Psych.dump food + Psych.load Psych.dump food assert_equal ivar, food.instance_variable_get(:@we_built_this_city) end diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index ba86807..cd3e8ee 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -250,7 +250,6 @@ EOY def test_spec_mapping_between_sequences # Complex key #1 - dj = Date.new( 2001, 7, 23 ) assert_parse_only( { [ 'Detroit Tigers', 'Chicago Cubs' ] => [ Date.new( 2001, 7, 23 ) ], [ 'New York Yankees', 'Atlanta Braves' ] => [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ), Date.new( 2001, 8, 14 ) ] }, <<EOY @@ -606,7 +605,7 @@ EOY def test_spec_domain_prefix customer_proc = proc { |type, val| if Hash === val - scheme, domain, type = type.split( ':', 3 ) + _, _, type = type.split( ':', 3 ) val['type'] = "domain #{type}" val else |