OLDREV 31667 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31667&diff_format=u NEWREV 31734 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31734&diff_format=u CHG ChangeLog 31667->31734 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?p1=branches/ruby_1_8/ChangeLog&r1=31667&r2=31734&pathrev=31734&diff_format=u CHG variable.c 27051->31734 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/variable.c?p1=branches/ruby_1_8/variable.c&r1=31667&r2=31734&pathrev=31734&diff_format=u CHG version.h 31656->31733 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?p1=branches/ruby_1_8/version.h&r1=31667&r2=31734&pathrev=31734&diff_format=u =================================================================== +++ 20110525T212615Z @@ 17632 @@ - retains the autoload even if the request to require fails - allows multiple autoload constants for a single file - runs for an exception condition class and doesn't trample the exception +- removes the constant from the constant table if load fails (FAILED - ) +- removes the constant from the constant table if the loaded files does not define it (FAILED - ) - does not load the file when refering to the constant in defined? - does not load the file when removing an autoload constant - does not load the file when accessing the constants table of the module @@ 48871 @@ - retains the autoload even if the request to require fails - allows multiple autoload constants for a single file - runs for an exception condition class and doesn't trample the exception +- removes the constant from the constant table if load fails (FAILED - ) +- removes the constant from the constant table if the loaded files does not define it (FAILED - ) - does not load the file when refering to the constant in defined? - does not load the file when removing an autoload constant - does not load the file when accessing the constants table of the module @@ 48891 @@ ) +Module#autoload removes the constant from the constant table if load fails FAILED +Expected ModuleSpecs::Autoload NOT to have constant 'Fail' but it does /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/expectations/should.rb:20:in `should_not' +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/core/module/autoload_spec.rb:163 /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/context.rb:179:in `protect' +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/core/module/fixtures/classes.rb:330:in `all?' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/context.rb:179:in `each' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/context.rb:179:in `all?' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 48922 @@ /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/bin/mspec-run:8 ) +Module#autoload removes the constant from the constant table if the loaded files does not define it FAILED +Expected ModuleSpecs::Autoload NOT to have constant 'O' but it does /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/expectations/should.rb:20:in `should_not' +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/core/module/autoload_spec.rb:171 /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /var/lib/chkbuild/tmp/build/ruby-1.8-o3//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 48985 @@ Finished in seconds +1 file, 33 examples, expectations, 3 failures, 0 errors exit 1 failed(rubyspec/core/module/autoload_spec.rb) == rubyspec/core/module/case_compare_spec.rb #