COMMIT Add specs to block_given? for Kernel.block_given? and self.send(:block_given?) http://github.com/rubyspec/rubyspec/commit/dbbd5f2ad63092b640b7b211a25dd913aee36422 COMMIT Finish Kernel#String specs http://github.com/rubyspec/rubyspec/commit/1267889c033afb804c9c437dbe63119bfb194ad4 COMMIT Add some more tests to kernel_object_id, and add test to equal? for overriding __id__ or object_id http://github.com/rubyspec/rubyspec/commit/877c22351256668c1ddba8f2f4b96b3e0bf2d4f1 COMMIT Complete specs for Integer() http://github.com/rubyspec/rubyspec/commit/709900b7e09ce507585fdda94305be30b962e105 COMMIT Simplify use of it_behaves_like in Float() specs. http://github.com/rubyspec/rubyspec/commit/252f425de845568a83f8281075cbdbdf5be6bd81 COMMIT Use shared specs for Process.times and Time.times. http://github.com/rubyspec/rubyspec/commit/0a238b96e3f0ce9fdd00efe65ce07ffd109eee7c COMMIT Complete Float spec http://github.com/rubyspec/rubyspec/commit/34215834410d1977f3a2b55d3f8d4d467f916812 COMMIT Integer(): Merge my dup. spec with the original. http://github.com/rubyspec/rubyspec/commit/bdd7e1a84b0f56352effcb2ea8f8a5c98c0c8b34 COMMIT Dir.home: Add initial tests for 1.9.2 method. http://github.com/rubyspec/rubyspec/commit/09e20bd2f4355a3c21b59014ff3c4578260d21eb --- 20090606T083458 +++ 20090607T083653 @@ -1,9719 +1,9720 @@ - matches the literal character '\' with option File::FNM_NOESCAPE - returns nil for directories current user has no permission to read +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/dir/home_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/dir/initialize_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/dir/mkdir_spec.rb Dir.mkdir @@ -12137,17 +12138,6 @@ - returns a new String for each call - raises a RangeError if self is out of the ASCII character range -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/integer/constructor_spec.rb -Integer() -- returns a Fixnum or Bignum object -- calls to_i on a non-numeric argument -- truncates Floats -- calls to_i on Rationals -- passes through Bignums as-is -- passes through Fixnums as-is -- returns 0 when passed nil -- raises a FloatDomainError when passed NaN - /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/integer/downto_spec.rb Integer#downto [stop] when self and stop are Fixnums - does not yield when stop is greater than self @@ -12508,7 +12498,7 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/new_spec.rb IO.new - returns a new IO object -- takes an Integer or #to_int argument as the descriptor to open (ERROR - ) +- takes an Integer or #to_int argument as the descriptor to open - associates new IO with the old descriptor so each IO directly affects the other - raises TypeError if not given an Integer or #to_int - raises EBADF if the file descriptor given is not a valid and open one @@ -12550,6 +12540,7 @@ - returns nil for IO not associated with a process - returns the ID of a process associated with stream - raises IOError on closed stream +heh /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/pipe_spec.rb IO.pipe @@ -12901,43 +12892,291 @@ - raises a TypeError if #to_ary / #to_a do not return an array /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/Float_spec.rb -Kernel.Float when passed a String -- raises a TypeError when the given String can't be fully converted to a Float - Kernel.Float -- is a private method -- converts the given argument to a Float by calling #to_f -- raises a TypeError of #to_f is not provided -- raises a TypeError if #to_f does not return a Float +- returns the identical Float for numeric Floats +- returns a Float for Fixnums +- returns a Float for Bignums +- raises an ArgumentError for nil +- returns the identical NaN for NaN +- returns the same Infinity for Infinity +- converts Strings to floats without calling #to_f +- converts Strings with decimal points into Floats +- raises and ArgumentError for a String of word characters +- raises an ArgumentError if there are two decimal points in the String +- raises and ArgumentError for a String of numbers followed by word characters +- raises and ArgumentError for a String of word characters followed by numbers +- converts String subclasses to floats without calling #to_f +- returns a positive Float if the string is prefixed with + +- returns a negative Float if the string is prefixed with + +- raises an ArgumentError if a + or - is embedded in a String +- raises an ArgumentError if a String has a trailing + or - +- raises an ArgumentError for a String with a leading _ +- returns a value for a String with an embedded _ +- raises an ArgumentError for a String with a trailing _ +- raises an ArgumentError for a String of \0 +- raises an ArgumentError for a String with a leading \0 +- raises an ArgumentError for a String with an embedded \0 +- raises an ArgumentError for a String with a trailing \0 +- raises an ArgumentError for a String that is just an empty space +- raises an ArgumentError for a String that with an embedded space +- returns a value for a String with a leading space +- returns a value for a String with a trailing space +- raises an ArgumentError if e is the trailing character +- raises an ArgumentError if e is the leading character +- returns Infinity for '2e1000' +- returns 0 for '2e-1000' +- allows embedded _ in a number on either side of the e +- raises an exception if a space is embedded on either side of the 'e' +- raises an exception if there's a leading _ on either side of the 'e' +- raises an exception if there's a trailing _ on either side of the 'e' +- allows decimal points on the left side of the 'e' +- raises an ArgumentError if there's a decimal point on the right side of the 'e' +- raises an ArgumentError if E is the trailing character +- raises an ArgumentError if E is the leading character +- returns Infinity for '2E1000' +- returns 0 for '2E-1000' +- allows embedded _ in a number on either side of the E +- raises an exception if a space is embedded on either side of the 'E' +- raises an exception if there's a leading _ on either side of the 'E' +- raises an exception if there's a trailing _ on either side of the 'E' +- allows decimal points on the left side of the 'E' +- raises an ArgumentError if there's a decimal point on the right side of the 'E' +- returns a Float that can be a parameter to #Float again +- otherwise, converts the given argument to a Float by calling #to_f +- raises an Argument Error if to_f is called and it returns NaN +- returns the identical Infinity if to_f is called and it returns Infinity +- raises a TypeError if #to_f is not provided +- raises a TypeError if #to_f returns a String +- raises a TypeError if #to_f returns an Integer Kernel#Float -- needs to be reviewed for spec completeness +- returns the identical Float for numeric Floats +- returns a Float for Fixnums +- returns a Float for Bignums +- raises an ArgumentError for nil +- returns the identical NaN for NaN +- returns the same Infinity for Infinity +- converts Strings to floats without calling #to_f +- converts Strings with decimal points into Floats +- raises and ArgumentError for a String of word characters +- raises an ArgumentError if there are two decimal points in the String +- raises and ArgumentError for a String of numbers followed by word characters +- raises and ArgumentError for a String of word characters followed by numbers +- converts String subclasses to floats without calling #to_f +- returns a positive Float if the string is prefixed with + +- returns a negative Float if the string is prefixed with + +- raises an ArgumentError if a + or - is embedded in a String +- raises an ArgumentError if a String has a trailing + or - +- raises an ArgumentError for a String with a leading _ +- returns a value for a String with an embedded _ +- raises an ArgumentError for a String with a trailing _ +- raises an ArgumentError for a String of \0 +- raises an ArgumentError for a String with a leading \0 +- raises an ArgumentError for a String with an embedded \0 +- raises an ArgumentError for a String with a trailing \0 +- raises an ArgumentError for a String that is just an empty space +- raises an ArgumentError for a String that with an embedded space +- returns a value for a String with a leading space +- returns a value for a String with a trailing space +- raises an ArgumentError if e is the trailing character +- raises an ArgumentError if e is the leading character +- returns Infinity for '2e1000' +- returns 0 for '2e-1000' +- allows embedded _ in a number on either side of the e +- raises an exception if a space is embedded on either side of the 'e' +- raises an exception if there's a leading _ on either side of the 'e' +- raises an exception if there's a trailing _ on either side of the 'e' +- allows decimal points on the left side of the 'e' +- raises an ArgumentError if there's a decimal point on the right side of the 'e' +- raises an ArgumentError if E is the trailing character +- raises an ArgumentError if E is the leading character +- returns Infinity for '2E1000' +- returns 0 for '2E-1000' +- allows embedded _ in a number on either side of the E +- raises an exception if a space is embedded on either side of the 'E' +- raises an exception if there's a leading _ on either side of the 'E' +- raises an exception if there's a trailing _ on either side of the 'E' +- allows decimal points on the left side of the 'E' +- raises an ArgumentError if there's a decimal point on the right side of the 'E' +- returns a Float that can be a parameter to #Float again +- otherwise, converts the given argument to a Float by calling #to_f +- raises an Argument Error if to_f is called and it returns NaN +- returns the identical Infinity if to_f is called and it returns Infinity +- raises a TypeError if #to_f is not provided +- raises a TypeError if #to_f returns a String +- raises a TypeError if #to_f returns an Integer -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/Integer_spec.rb -Kernel.Integer when given a String -- does not call #to_i on the given String -- ignores whitespaces -- raises an ArgumentError if the given String has no valid Integer representation +Kernel#Float +- is a private method +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/Integer_spec.rb Kernel.Integer -- is a private method -- calls #to_int if the given object responds to it -- calls to_i to convert any arbitrary argument to an Integer -- raises a TypeError if there is no to_i method on an object +- returns a Bignum for a Bignum +- returns a Fixnum for a Fixnum +- uncritically return the value of to_int even if it is not an Integer - returns 0 when passed nil -- raises a TypeError if to_i doesn't return an Integer +- returns a Fixnum or Bignum object +- truncates Floats +- calls to_i on Rationals +- returns the value of to_int if the result is a Fixnum +- returns the value of to_int if the result is a Bignum +- calls to_i on an object whose to_int returns nil +- uncritically return the value of to_int even if it is not an Integer +- raises a TypeError if to_i returns a value that is not an Integer +- raises a TypeError if no to_int or to_i methods exist +- raises a TypeError if to_int returns nil and no to_i exists +- raises a FloatDomainError when passed NaN +- raises a FloatDomainError when passed Infinity +- raises an ArgumentError if the String is a null byte +- raises an ArgumentError if the String starts with a null byte +- raises an ArgumentError if the String ends with a null byte +- raises an ArgumentError if the String contains a null byte +- ignores leading whitespace +- ignores trailing whitespace +- raises an ArgumentError if there are leading _s +- raises an ArgumentError if there are trailing _s +- ignores an embedded _ +- raises an ArgumentError if there are multiple embedded _s +- ignores a single leading + +- raises an ArgumentError if there is a space between the + and number +- raises an ArgumentError if there are multiple leading +s +- raises an ArgumentError if there are trailing +s +- makes the number negative if there's a leading - +- raises an ArgumentError if there are multiple leading -s +- raises an ArgumentError if there are trailing -s +- raises an ArgumentError if there is a period +- raises an ArgumentError for an empty String +- parses the value as a hex number if there's a leading 0x +- is a positive hex number if there's a leading +0x +- is a negative hex number if there's a leading -0x +- raises an ArgumentError if the number cannot be parsed as hex +- parses the value as a hex number if there's a leading 0X +- is a positive hex number if there's a leading +0X +- is a negative hex number if there's a leading -0X +- raises an ArgumentError if the number cannot be parsed as hex +- parses the value as a binary number if there's a leading 0b +- is a positive binary number if there's a leading +0b +- is a negative binary number if there's a leading -0b +- raises an ArgumentError if the number cannot be parsed as binary +- parses the value as a binary number if there's a leading 0B +- is a positive binary number if there's a leading +0B +- is a negative binary number if there's a leading -0B +- raises an ArgumentError if the number cannot be parsed as binary +- parses the value as an octal number if there's a leading 0o +- is a positive octal number if there's a leading +0o +- is a negative octal number if there's a leading -0o +- raises an ArgumentError if the number cannot be parsed as octal +- parses the value as an octal number if there's a leading 0O +- is a positive octal number if there's a leading +0O +- is a negative octal number if there's a leading -0O +- raises an ArgumentError if the number cannot be parsed as octal +- parses the value as an octal number if there's a leading 0 +- is a positive octal number if there's a leading +0 +- is a negative octal number if there's a leading -0 +- raises an ArgumentError if the number cannot be parsed as octal +- parses the value as a decimal number if there's a leading 0D +- is a positive decimal number if there's a leading +0D +- is a negative decimal number if there's a leading -0D +- raises an ArgumentError if the number cannot be parsed as decimal +- parses the value as a decimal number if there's a leading 0d +- is a positive decimal number if there's a leading +0d +- is a negative decimal number if there's a leading -0d +- raises an ArgumentError if the number cannot be parsed as decimal +- is a public method Kernel#Integer -- needs to be reviewed for spec completeness +- returns a Bignum for a Bignum +- returns a Fixnum for a Fixnum +- uncritically return the value of to_int even if it is not an Integer +- returns 0 when passed nil +- returns a Fixnum or Bignum object +- truncates Floats +- calls to_i on Rationals +- returns the value of to_int if the result is a Fixnum +- returns the value of to_int if the result is a Bignum +- calls to_i on an object whose to_int returns nil +- uncritically return the value of to_int even if it is not an Integer +- raises a TypeError if to_i returns a value that is not an Integer +- raises a TypeError if no to_int or to_i methods exist +- raises a TypeError if to_int returns nil and no to_i exists +- raises a FloatDomainError when passed NaN +- raises a FloatDomainError when passed Infinity +- raises an ArgumentError if the String is a null byte +- raises an ArgumentError if the String starts with a null byte +- raises an ArgumentError if the String ends with a null byte +- raises an ArgumentError if the String contains a null byte +- ignores leading whitespace +- ignores trailing whitespace +- raises an ArgumentError if there are leading _s +- raises an ArgumentError if there are trailing _s +- ignores an embedded _ +- raises an ArgumentError if there are multiple embedded _s +- ignores a single leading + +- raises an ArgumentError if there is a space between the + and number +- raises an ArgumentError if there are multiple leading +s +- raises an ArgumentError if there are trailing +s +- makes the number negative if there's a leading - +- raises an ArgumentError if there are multiple leading -s +- raises an ArgumentError if there are trailing -s +- raises an ArgumentError if there is a period +- raises an ArgumentError for an empty String +- parses the value as a hex number if there's a leading 0x +- is a positive hex number if there's a leading +0x +- is a negative hex number if there's a leading -0x +- raises an ArgumentError if the number cannot be parsed as hex +- parses the value as a hex number if there's a leading 0X +- is a positive hex number if there's a leading +0X +- is a negative hex number if there's a leading -0X +- raises an ArgumentError if the number cannot be parsed as hex +- parses the value as a binary number if there's a leading 0b +- is a positive binary number if there's a leading +0b +- is a negative binary number if there's a leading -0b +- raises an ArgumentError if the number cannot be parsed as binary +- parses the value as a binary number if there's a leading 0B +- is a positive binary number if there's a leading +0B +- is a negative binary number if there's a leading -0B +- raises an ArgumentError if the number cannot be parsed as binary +- parses the value as an octal number if there's a leading 0o +- is a positive octal number if there's a leading +0o +- is a negative octal number if there's a leading -0o +- raises an ArgumentError if the number cannot be parsed as octal +- parses the value as an octal number if there's a leading 0O +- is a positive octal number if there's a leading +0O +- is a negative octal number if there's a leading -0O +- raises an ArgumentError if the number cannot be parsed as octal +- parses the value as an octal number if there's a leading 0 +- is a positive octal number if there's a leading +0 +- is a negative octal number if there's a leading -0 +- raises an ArgumentError if the number cannot be parsed as octal +- parses the value as a decimal number if there's a leading 0D +- is a positive decimal number if there's a leading +0D +- is a negative decimal number if there's a leading -0D +- raises an ArgumentError if the number cannot be parsed as decimal +- parses the value as a decimal number if there's a leading 0d +- is a positive decimal number if there's a leading +0d +- is a negative decimal number if there's a leading -0d +- raises an ArgumentError if the number cannot be parsed as decimal +- is a private method /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/String_spec.rb Kernel.String -- is a private method - converts the given argument to a String by calling #to_s +- raises a TypeError if #to_s is not provided +- raises a TypeError if respond_to? returns false for to_s +- tries to call the to_s method if respond_to? returns true for to_s - raises a TypeError if #to_s does not return a String +- returns the same object if it already a String +- returns the same object if it is an instance of a String subclass Kernel#String -- needs to be reviewed for spec completeness +- converts the given argument to a String by calling #to_s +- raises a TypeError if #to_s is not provided +- raises a TypeError if respond_to? returns false for to_s +- tries to call the to_s method if respond_to? returns true for to_s +- raises a TypeError if #to_s does not return a String +- returns the same object if it already a String +- returns the same object if it is an instance of a String subclass +- is a private method /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/__callee__spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/__id___spec.rb @@ -12945,6 +13184,15 @@ - returns an integer - returns the same value on all calls to id for a given object - returns different values for different objects +- returns the same value for two Fixnums with the same value +- returns the same value for two Symbol literals +- returns the same value for two true literals +- returns the same value for two false literals +- returns the same value for two nil literals +- returns a different value for two Bignum literals +- returns a different value for two Float literals +- returns a different value for two String literals +- returns a different value for an object and its dup Kernel#__id__ - needs to be reviewed for spec completeness @@ -13024,8 +13272,17 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/block_given_spec.rb Kernel#block_given? +- returns true if and only if a block is supplied +- returns false when a method defined by define_method is called with a block +- returns false outside of a method - is a private method + +Kernel.block_given? - returns true if and only if a block is supplied +- returns false when a method defined by define_method is called with a block + +self.send(:block_given?) +- always returns false Kernel.block_given? - needs to be reviewed for spec completeness @@ -13155,6 +13412,8 @@ Kernel#equal? - returns true only if obj and other are the same object - returns true if obj and anObject have the same value. +- is unaffected by overriding object_id +- is unaffected by overriding __id__ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/equal_value_spec.rb Kernel#== @@ -13496,6 +13755,15 @@ - returns an integer - returns the same value on all calls to id for a given object - returns different values for different objects +- returns the same value for two Fixnums with the same value +- returns the same value for two Symbol literals +- returns the same value for two true literals +- returns the same value for two false literals +- returns the same value for two nil literals +- returns a different value for two Bignum literals +- returns a different value for two Float literals +- returns a different value for two String literals +- returns a different value for an object and its dup Kernel#object_id - needs to be reviewed for spec completeness @@ -17134,92 +17402,92 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/symbol/inspect_spec.rb Symbol#inspect +- returns self as a symbol literal for :"." - returns self as a symbol literal for :[] - returns self as a symbol literal for :$= - returns self as a symbol literal for :$$ -- returns self as a symbol literal for :$ruby - returns self as a symbol literal for :/ - returns self as a symbol literal for :$. -- returns self as a symbol literal for :"\"\"" +- returns self as a symbol literal for :" " - returns self as a symbol literal for :".." - returns self as a symbol literal for :$~ -- returns self as a symbol literal for :@@ruby -- returns self as a symbol literal for :"@ruby?" -- returns self as a symbol literal for :"?" -- returns self as a symbol literal for :"=" +- returns self as a symbol literal for :"\"" - returns self as a symbol literal for :=~ +- returns self as a symbol literal for :"@ruby!" - returns self as a symbol literal for :$< -- returns self as a symbol literal for :fred! - returns self as a symbol literal for :> -- returns self as a symbol literal for :"$" -- returns self as a symbol literal for :"." +- returns self as a symbol literal for :"=>" +- returns self as a symbol literal for :fred? - returns self as a symbol literal for :< -- returns self as a symbol literal for :fred +- returns self as a symbol literal for :$1234 - returns self as a symbol literal for :@ruby -- returns self as a symbol literal for :" " +- returns self as a symbol literal for :fred - returns self as a symbol literal for :$\ - returns self as a symbol literal for :>= - returns self as a symbol literal for :$+ - returns self as a symbol literal for :` -- returns self as a symbol literal for :"\"" +- returns self as a symbol literal for :"," +- returns self as a symbol literal for :" foo" - returns self as a symbol literal for :^ +- returns self as a symbol literal for :"$-ww" - returns self as a symbol literal for :% - returns self as a symbol literal for :=== -- returns self as a symbol literal for :"@ruby!" - returns self as a symbol literal for :"9" -- returns self as a symbol literal for :"=>" +- returns self as a symbol literal for :"|||" - returns self as a symbol literal for :$: -- returns self as a symbol literal for :$1234 - returns self as a symbol literal for :$* - returns self as a symbol literal for :<=> -- returns self as a symbol literal for :fred? -- returns self as a symbol literal for :"," +- returns self as a symbol literal for :"$ruby?" +- returns self as a symbol literal for :"@" - returns self as a symbol literal for :$> - returns self as a symbol literal for :"!" - returns self as a symbol literal for :-@ -- returns self as a symbol literal for :" foo" -- returns self as a symbol literal for :"$-ww" - returns self as a symbol literal for :>> - returns self as a symbol literal for :~ - returns self as a symbol literal for :$' -- returns self as a symbol literal for :"|||" -- returns self as a symbol literal for :"$ruby?" +- returns self as a symbol literal for :"'" +- returns self as a symbol literal for :"foo " +- returns self as a symbol literal for :"@@ruby?" - returns self as a symbol literal for :[]= - returns self as a symbol literal for :| - returns self as a symbol literal for :"++" -- returns self as a symbol literal for :"@" +- returns self as a symbol literal for :"||" - returns self as a symbol literal for :"..." - returns self as a symbol literal for :$; -- returns self as a symbol literal for :"'" +- returns self as a symbol literal for :"$ruby!" +- returns self as a symbol literal for :";" - returns self as a symbol literal for :$! - returns self as a symbol literal for :"!~" -- returns self as a symbol literal for :"foo " +- returns self as a symbol literal for :"&&" - returns self as a symbol literal for :* -- returns self as a symbol literal for :"@@ruby?" - returns self as a symbol literal for :$/ - returns self as a symbol literal for :$` -- returns self as a symbol literal for :"||" +- returns self as a symbol literal for :"*foo" - returns self as a symbol literal for :<= -- returns self as a symbol literal for :"$ruby!" - returns self as a symbol literal for :$" +- returns self as a symbol literal for :"@@ruby!" - returns self as a symbol literal for :"foo bar" -- returns self as a symbol literal for :";" - returns self as a symbol literal for :& - returns self as a symbol literal for :"!=" +- returns self as a symbol literal for :":" - returns self as a symbol literal for :$@ - returns self as a symbol literal for :== - returns self as a symbol literal for :$? - returns self as a symbol literal for :$-w -- returns self as a symbol literal for :"&&" - returns self as a symbol literal for :$_ -- returns self as a symbol literal for :"*foo" - returns self as a symbol literal for :$& -- returns self as a symbol literal for :"@@ruby!" - returns self as a symbol literal for :$, - returns self as a symbol literal for :** +- returns self as a symbol literal for :$ruby +- returns self as a symbol literal for :"\"\"" - returns self as a symbol literal for :"::" +- returns self as a symbol literal for :"@ruby?" - returns self as a symbol literal for :+@ -- returns self as a symbol literal for :":" +- returns self as a symbol literal for :@@ruby +- returns self as a symbol literal for :"?" +- returns self as a symbol literal for :"=" +- returns self as a symbol literal for :fred! +- returns self as a symbol literal for :"$" - returns self as a symbol literal for :<< /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/symbol/to_i_spec.rb @@ -17683,7 +17951,8 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/time/times_spec.rb Time.times -- is an obsolete method +- returns a Struct::Tms +- returns current cpu times /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/time/to_a_spec.rb Time#to_a @@ -26670,8 +26939,7 @@ ) The throw keyword raises a name error if outside of scope of a matching catch FAILED -Expected NameError -but got ThreadError (uncaught throw `test' in thread 0xXXXXXXX) +Expected NameError but got ThreadError (uncaught throw `test' in thread 0xXXXXXX) /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/expectations/should.rb:7:in `should' /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/throw_spec.rb:57 @@ -26794,38 +27062,6 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 ) -IO.new takes an Integer or #to_int argument as the descriptor to open ERROR -Errno::EBADF: Bad file descriptor -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/shared/new.rb:34:in `initialize' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/shared/new.rb:34:in `new' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/shared/new.rb:34:in `send' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/shared/new.rb:34 -/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/io/shared/new.rb:17: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/io/new_spec.rb:4 -/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.__method__ returns the current method, even when aliased FAILED Expected :send to equal :f @@ -27070,8 +27306,7 @@ ) Kernel.throw raises NameError if there is no catch block for the symbol FAILED -Expected NameError -but got ThreadError (uncaught throw `blah' in thread 0xXXXXXXX) +Expected NameError but got ThreadError (uncaught throw `blah' in thread 0xXXXXXX) /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/expectations/should.rb:7:in `should' /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/throw_spec.rb:45 @@ -28155,7 +28390,7 @@ Finished in seconds -2594 files, 10842 examples, 35640 expectations, 30 failures, 17 errors +2594 files, 11113 examples, 36042 expectations, 30 failures, 16 errors exit 1 failed(rubyspec) == end #