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 --- 20091001T091307 +++ 20091002T091001 @@ -1,12171 +1,12171 @@ - raises TypeError if not given an Integer or #to_int - raises ArgumentError if not given any arguments - raises EBADF if the file descriptor given is not a valid and open one -- raises EINVAL if mode is not compatible with the descriptor's current mode +- raises EINVAL if mode is not compatible with the descriptor's current mode (FAILED - ) - raises IOError on closed stream - does not close the stream automatically if given a block - emits a warning if given a block @@ -13347,7 +13347,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 @@ -18440,7 +18440,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 @@ -18472,6 +18472,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-pth//rubyspec/language/if_spec.rb The if expression @@ -28906,6 +28907,37 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +IO.new raises EINVAL if mode is not compatible with the descriptor's current mode FAILED +Expected to not get Exception +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/should.rb:19:in `should_not' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/shared/new.rb:79 +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/shared/new.rb:72:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:163:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:155:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:155:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:36:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/new_spec.rb:4 +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `load' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:49:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:49:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:41:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/utils/script.rb:217:in `main' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 + + ) Kernel.__method__ returns the current method, even when aliased FAILED Expected :send to equal :f @@ -29073,6 +29105,41 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Kernel#load returns __FILE__ as a relative path FAILED +Expected "/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/fixtures/load/load_spec_4.rb" +to equal "./load_spec_4.rb" + +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/load_spec.rb:118 +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/load_spec.rb:116:in `chdir' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/load_spec.rb:116 +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/load_spec.rb:109:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:163:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:155:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:155:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:36:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/load_spec.rb:31 +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `load' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:49:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:49:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:41:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/utils/script.rb:217:in `main' +/home/chkbuild/tmp/build/ruby-1.8-pth//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-pth//rubyspec/fixtures/require/require_spec_4.rb", 1], @@ -29379,6 +29446,41 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//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-pth//rubyspec/language/fixtures/file.rb" +to equal "./fixtures/file.rb" + +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/file_spec.rb:20 +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/file_spec.rb:18:in `chdir' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/file_spec.rb:18 +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/file_spec.rb:11:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:135:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:163:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:155:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:155:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:36:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/file_spec.rb:5 +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `load' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:67:in `protect' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:55:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:49:in `each' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:49:in `files' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:41:in `process' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/utils/script.rb:217:in `main' +/home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 + + ) An exception occurred during: loading /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/method_spec.rb ERROR SyntaxError: /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/versions/method_1.8.rb:31: syntax error, unexpected tINTEGER, expecting kDO or '{' or '(' [f 5, 6].should == [2] @@ -32091,7 +32193,7 @@ Finished in seconds -2893 files, 11430 examples, 36351 expectations, 65 failures, 67 errors +2893 files, 11431 examples, 36355 expectations, 68 failures, 67 errors exit 1 failed(rubyspec) == end #