COMMIT __FILE__ returns a relative path in 1.8.x. http://github.com/rubyspec/rubyspec/commit/33447f937e9258302645241039ccbd494febcf67 COMMIT IO#binmode : bug #2046 doesn't backport yet in 1.8.7.174. http://github.com/rubyspec/rubyspec/commit/13c787b08051948a5f010d0fc904fdc4aec848fa COMMIT added check for forzen key http://github.com/rubyspec/rubyspec/commit/08628f0cb623efc1d13439d85346d543c48355fd COMMIT Merge branch 'master' of git@github.com:rubyspec/rubyspec http://github.com/rubyspec/rubyspec/commit/f3d0d6bcf184be12b88e391fb86aca3c8014c50e COMMIT added spec to check string keys are frozen on hash initialization http://github.com/rubyspec/rubyspec/commit/dc7915550bd37261ae3d6cbbd265716f9f373f46 --- 20091001T082059 +++ 20091002T081752 @@ -1,11837 +1,11836 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/output_spec.rb IO#<< - writes an object to the IO stream -- calls #to_s on the object to print itheh - +- calls #to_s on the object to print it - raises an error if the stream is closed /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/pid_spec.rb @@ -12982,7 +12981,7 @@ - loads a file with any extension as a ruby source file - does not create a .rb file for the non-.rb files - does not add the loaded file to $LOADED_FEATURES -- returns __FILE__ as an absolute path +- returns __FILE__ as a relative path (FAILED - ) - produces __FILE__ as the given filename and __LINE__ as the source line number - reloads the file if invoked on the same filename again, returning true - re-evaluates the file each time it is loaded @@ -18075,7 +18074,7 @@ The __FILE__ constant - equals the current filename - equals (eval) inside an eval -- equals an absolute path when required using a relative path +- equals a relative path when required using a relative path (FAILED - ) - equals the full path when required using a full path The __FILE__ constant @@ -18107,6 +18106,7 @@ - {} should return an empty hash - {} should return a new hash populated with the given elements - treats empty expressions as nils +- freezes string keys on initialization /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/if_spec.rb The if expression @@ -28708,6 +28708,41 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 ) +Kernel#load returns __FILE__ as a relative path FAILED +Expected "/home/chkbuild/tmp/build/ruby-1.8//rubyspec/fixtures/load/load_spec_4.rb" +to equal "./load_spec_4.rb" + +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/load_spec.rb:118 +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/load_spec.rb:116:in `chdir' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/load_spec.rb:116 +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/load_spec.rb:109:in `all?' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `each' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `all?' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:163:in `process' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `each' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `process' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:36:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/load_spec.rb:31 +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `load' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `each' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `files' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:41:in `process' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/utils/script.rb:217:in `main' +/home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 + + ) Kernel#require produces __FILE__ as the given filename and __LINE__ as the source line number FAILED Expected [["/home/chkbuild/tmp/build/ruby-1.8//rubyspec/fixtures/require/require_spec_4.rb", 1], @@ -29014,6 +29049,41 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 ) +The __FILE__ constant equals a relative path when required using a relative path FAILED +Expected "/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/fixtures/file.rb" +to equal "./fixtures/file.rb" + +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/file_spec.rb:20 +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/file_spec.rb:18:in `chdir' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/file_spec.rb:18 +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/file_spec.rb:11:in `all?' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `each' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `all?' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:163:in `process' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `each' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `process' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:36:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/file_spec.rb:5 +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `load' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `each' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `files' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:41:in `process' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' +/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/utils/script.rb:217:in `main' +/home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 + + ) An exception occurred during: loading /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/method_spec.rb ERROR SyntaxError: /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/versions/method_1.8.rb:31: syntax error, unexpected tINTEGER, expecting kDO or '{' or '(' [f 5, 6].should == [2] @@ -31726,7 +31796,7 @@ Finished in seconds -2893 files, 11430 examples, 36351 expectations, 65 failures, 67 errors +2893 files, 11431 examples, 36355 expectations, 67 failures, 67 errors exit 1 failed(rubyspec) == end #