Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Load path for 1.9.2 in spec_helper.rb. No map method for string in 1.9.2

#5460

Hi, I attached patch which fixes load path in spec_helper.rb for ruby 1.9.2.
Also it contains fix for missing String#map in ruby 1.9.2 in Arel::Where#initializer.

Reported by Marjan Krekoten' · August 25th, 2010 @ 08:04 PM

State: committed
Milestone: none
Assigned to: Aaron Patterson Aaron Patterson
Importance: Low

Activity

  1. Marjan Krekoten'
    Marjan Krekoten'
    • Tag changed from patch arel 1.9.2 to 1.9.2, arel, patch

    August 25th, 2010 @ 08:07 PM

  2. Aaron Patterson
    Aaron Patterson
    • Importance changed from to Low

    Please split this to two patches. Also, can you add the load path for "rake spec" rather than the spec helper?

    Thanks!

    August 25th, 2010 @ 09:58 PM

  3. Marjan Krekoten'
  4. Marjan Krekoten'
    Marjan Krekoten'

    Sorry for taking too long.
    Splited and fixed as you said :)

    August 26th, 2010 @ 10:51 AM

  5. Aaron Patterson
    Aaron Patterson
    • State changed from new to incomplete

    Hi Marjan, I've applied the 001 patch. Can you provide a test for the second patch? If I don't have a test, I'm afraid this fix will get regressed some day.

    Thanks!

    August 28th, 2010 @ 08:09 AM

  6. Marjan Krekoten'
    Marjan Krekoten'

    Well, test is already exists in source. Under ruby 1.9.2-p0 engines/sql/unit/relations/where_spec.rb:43 fails with

    NoMethodError in 'Arel::Where#to_sql when given a string passes the string through to the where clause' undefined method map' for "asdf":String

    So that patch fixes this issue.

    August 28th, 2010 @ 10:34 AM

  7. Aaron Patterson
    Aaron Patterson
    • State changed from incomplete to committed

    Doh! Sorry, I must be not thinking straight today. I've applied your patch. :-)

    August 29th, 2010 @ 01:58 AM