diff options
Diffstat (limited to 'test/rake/test_rake_application.rb')
-rw-r--r-- | test/rake/test_rake_application.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rake/test_rake_application.rb b/test/rake/test_rake_application.rb index 1532be1c9b..f52040471b 100644 --- a/test/rake/test_rake_application.rb +++ b/test/rake/test_rake_application.rb @@ -17,8 +17,10 @@ class TestRakeApplication < Rake::TestCase end def test_display_exception_details + obj = Object.new + obj.instance_eval("def #{__method__}; raise 'test'; end", "ruby") begin - raise 'test' + obj.__send__(__method__) rescue => ex end |