From ca502bbc7e2e12ce64c0b516e47af3aaae8779e7 Mon Sep 17 00:00:00 2001 From: Jim Weirich Date: Sun, 31 Aug 2008 00:02:20 -0400 Subject: [PATCH] some Ruby 1.9 fixes --- test/test_filelist.rb | 2 +- test/test_tasks.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_filelist.rb b/test/test_filelist.rb index ff7960a73..b6a6265e6 100644 --- a/test/test_filelist.rb +++ b/test/test_filelist.rb @@ -442,7 +442,7 @@ def test_cloned_items_stay_frozen a = FileList['a', 'b', 'c'] a.freeze c = a.clone - assert_raise(TypeError) do + assert_raise(TypeError, RuntimeError) do c << 'more' end end diff --git a/test/test_tasks.rb b/test/test_tasks.rb index dd3968422..a673422af 100644 --- a/test/test_tasks.rb +++ b/test/test_tasks.rb @@ -309,7 +309,7 @@ def test_arguments_are_passed_to_block def test_extra_parameters_are_ignored t = task(:t, :a) { |tt, args| assert_equal 1, args.a - assert_nil args[2] + assert_nil args.b } t.invoke(1, 2) end