Skip to content

Instantly share code, notes, and snippets.

@mame
Created February 10, 2010 03:18
Show Gist options
  • Save mame/299989 to your computer and use it in GitHub Desktop.
Save mame/299989 to your computer and use it in GitHub Desktop.
1)
Ruby character strings interpolates the return value of Object#inspect, without ivars, if Object#to_s does not return a String instance ERROR
ArgumentError: wrong number of arguments(2 for 1)
/home/mame/work/ruby/spec/rubyspec/language/string_spec.rb:158:in `[]'
/home/mame/work/ruby/spec/rubyspec/language/string_spec.rb:158:in `block (2 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/language/string_spec.rb:5:in `<top (required)>'
2)
Array#concat raises a RuntimeError when Array is frozen and no modification occurs FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/array/concat_spec.rb:52:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/array/concat_spec.rb:4:in `<top (required)>'
3)
Array#flatten! raises a RuntimeError on frozen arrays when the array would not be modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/array/flatten_spec.rb:208:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/array/flatten_spec.rb:97:in `<top (required)>'
4)
Array#insert raises a RuntimeError on frozen arrays when the array would not be modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/array/insert_spec.rb:87:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/array/insert_spec.rb:4:in `<top (required)>'
5)
Array#uniq! raises a RuntimeError on a frozen array when the array would not be modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/array/uniq_spec.rb:139:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/array/uniq_spec.rb:88:in `<top (required)>'
6)
Array#unshift raises a RuntimeError on a frozen array when the array would not be modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/array/unshift_spec.rb:55:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/array/unshift_spec.rb:4:in `<top (required)>'
7)
File.new raises an Errno::EINVAL error with File::APPEND FAILED
Expected Errno::EINVAL but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/file/new_spec.rb:101:in `block (2 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/file/new_spec.rb:4:in `<top (required)>'
8)
File.new raises an Errno::EINVAL error with File::RDONLY|File::APPEND FAILED
Expected Errno::EINVAL but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/file/new_spec.rb:105:in `block (2 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/file/new_spec.rb:4:in `<top (required)>'
9)
File#to_path does not preserve the encoding of the path FAILED
Expected #<Encoding:EUC-JP>
to equal #<Encoding:UTF-8>
/home/mame/work/ruby/spec/rubyspec/core/file/to_path_spec.rb:30:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/file/to_path_spec.rb:4:in `block in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/file/to_path_spec.rb:3:in `<top (required)>'
10)
Hash#initialize_copy raises a RuntimeError if called on a frozen instance that is modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/hash/shared/replace.rb:50:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/hash/initialize_copy_spec.rb:5:in `<top (required)>'
11)
Hash#replace raises a RuntimeError if called on a frozen instance that is modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/hash/shared/replace.rb:50:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/hash/replace_spec.rb:5:in `<top (required)>'
12)
IO#reopen reassociates self with a new stream after some reads FAILED
Expected "Line 3: Three\n"
to equal "Line 1: One\n"
/home/mame/work/ruby/spec/rubyspec/core/io/reopen_spec.rb:125:in `block (2 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/io/reopen_spec.rb:4:in `<top (required)>'
13)
ObjectSpace.define_finalizer doesn't call self-referencing finalizers FAILED
Expected "finalized"
not to equal "finalized"
/home/mame/work/ruby/spec/rubyspec/core/objectspace/define_finalizer_spec.rb:47:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/objectspace/define_finalizer_spec.rb:8:in `<top (required)>'
14)
String#replace raises a RuntimeError on a frozen instance that would not be modified FAILED
Expected RuntimeError but no exception was raised
/home/mame/work/ruby/spec/rubyspec/core/string/replace_spec.rb:53:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/string/replace_spec.rb:4:in `<top (required)>'
15)
Time#- decrements the time by the specified amount FAILED
Expected 1970-01-01 09:00:00 +0900
to equal 1970-01-01 09:00:00 +0900
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:47:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:42:in `block in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:41:in `<top (required)>'
16)
Time#- accepts arguments that can be coerced into Float ERROR
TypeError: can't convert MockObject into an exact number
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:53:in `-'
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:53:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:42:in `block in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:41:in `<top (required)>'
17)
An exception occurred during: Mock.verify_count
Time#- accepts arguments that can be coerced into Float FAILED
Mock '9.5' expected to receive 'to_f' exactly 1 times but received it 0 times
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:42:in `block in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/minus_spec.rb:41:in `<top (required)>'
18)
Time#+ rounds micro seconds rather than truncates FAILED
Expected 1970-01-01 09:00:08 +0900
to equal 1970-01-01 09:00:09 +0900
/home/mame/work/ruby/spec/rubyspec/core/time/plus_spec.rb:21:in `block (2 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/plus_spec.rb:4:in `<top (required)>'
19)
Time#+ tracks microseconds FAILED
Expected 123455
to equal 123456
/home/mame/work/ruby/spec/rubyspec/core/time/plus_spec.rb:65:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/core/time/plus_spec.rb:4:in `<top (required)>'
20)
ERB#src returns the compiled ruby code FAILED
Expected "#coding:US-ASCII\n_erbout = ''; _erbout.concat \"<ul>\\n\"\n; for item in list ; _erbout.concat \"\\n<li>\"\n; _erbout.concat(( item ).to_s); _erbout.concat \"</li>\\n\"\n; end ; _erbout.concat \"\\n</ul>\\n\"\n\n; _erbout.force_encoding(__ENCODING__)"
to equal "_erbout = ''; _erbout.concat \"<ul>\\n\"\n; for item in list ; _erbout.concat \"\\n<li>\"\n; _erbout.concat(( item ).to_s); _erbout.concat \"</li>\\n\"\n; end ; _erbout.concat \"\\n</ul>\\n\"\n\n; _erbout"
/home/mame/work/ruby/spec/rubyspec/library/erb/src_spec.rb:49:in `block (3 levels) in <top (required)>'
/home/mame/work/ruby/spec/rubyspec/library/erb/src_spec.rb:4:in `<top (required)>'
Finished in 142.774525 seconds
2877 files, 13888 examples, 166636 expectations, 18 failures, 2 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment