Ticket #232 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] Numeric comparison in core_ext_spec fails mysteriously under JRuby

Reported by: dudl..@misnomer.us Assigned to:
Priority: major Milestone: 0.3.x
Component: Merb Keywords:
Cc:

Description

When running the specs under JRuby, (10 ** -6) doesn't == Float(10 ** -6) It works as expected in JRuby generally, but fails in the spec, so I suspect it's an rspec bug. This patch just casts the expected values in the spec to Floats

Attachments

jruby_numeric_spec.diff (0.5 kB) - added by dudl..@misnomer.us on 10/19/07 15:54:29.

Change History

10/19/07 15:54:29 changed by dudl..@misnomer.us

  • attachment jruby_numeric_spec.diff added.

10/21/07 09:26:57 changed by dudl..@misnomer.us

  • summary changed from Numeric comparison in core_ext_spec fails mysteriously under JRuby to [PATCH] Numeric comparison in core_ext_spec fails mysteriously under JRuby.

10/24/07 12:45:07 changed by e.@brainspl.at

  • status changed from new to closed.
  • resolution set to fixed.

(In [762]) Applying all dudleys patches to make merb work under jruby, fell back tp json_pure gem but will still try to load the C ext first before falling back to the pure version. closes #231, closes #232, closes #236, closes #242, closes #235 Thanks dudley