Revision: 1135 http://trac.macosforge.org/projects/ruby/changeset/1135 Author: eloy.de.enige@gmail.com Date: 2009-03-24 07:37:05 -0700 (Tue, 24 Mar 2009) Log Message: ----------- Added failing test for rescueing an exception raised from a file which is being required. Modified Paths: -------------- MacRuby/branches/experimental/test_roxor.rb Added Paths: ----------- MacRuby/branches/experimental/test_roxor_fixtures/lib/raise.rb Modified: MacRuby/branches/experimental/test_roxor.rb =================================================================== --- MacRuby/branches/experimental/test_roxor.rb 2009-03-24 13:56:31 UTC (rev 1134) +++ MacRuby/branches/experimental/test_roxor.rb 2009-03-24 14:37:05 UTC (rev 1135) @@ -1350,6 +1350,8 @@ assert ":ok", "$:.unshift('test_roxor_fixtures/lib'); require 'foo'" + assert ":ok", "begin; require 'test_roxor_fixtures/lib/raise'; rescue NameError; p :ok; end" + end test "method" do Added: MacRuby/branches/experimental/test_roxor_fixtures/lib/raise.rb =================================================================== --- MacRuby/branches/experimental/test_roxor_fixtures/lib/raise.rb (rev 0) +++ MacRuby/branches/experimental/test_roxor_fixtures/lib/raise.rb 2009-03-24 14:37:05 UTC (rev 1135) @@ -0,0 +1 @@ +raise NameError, "I don't like my name! It's sooo negative..." \ No newline at end of file
participants (1)
-
source_changes@macosforge.org