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.

activerecord finder_test fails 1 test

#4307

I pulled rails 3 from commit 3859828d89d378986af0fc2390608b00aad5e912 and got 1 error when running "rake test_postgresql" from the activerecord folder. The exact test that fails is finder_test.rb. To quickly reproduce the failure, run:

rake test_postgresql TEST=test/cases/finder_test.rb

Here's the entire output of the failure.

DougMacBookPro:activerecord doug$ rake test_postgresql TEST=test/cases/finder_test.rb
(in /Users/doug/opensource/rails/activerecord)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -Ilib:test:test/connections/native_postgresql "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/cases/finder_test.rb" 
Using native PostgreSQL
Loaded suite /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
Started
...............................................................................F...............................................................
Finished in 1.212725 seconds.

  1) Failure:
test_find_on_hash_conditions_with_end_exclusive_range(FinderTest)
    [./test/cases/finder_test.rb:324:in `test_find_on_hash_conditions_with_end_exclusive_range'
     /Users/doug/opensource/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:64:in `__send__'
     /Users/doug/opensource/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:64:in `run'
     /Users/doug/opensource/rails/activesupport/lib/active_support/callbacks.rb:412:in `_run_setup_callbacks'
     /Users/doug/opensource/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<[1, 2]> expected but was
<[1, 2, 3]>.

143 tests, 350 assertions, 1 failures, 0 errors
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]

(See full trace by running task with --trace)

Reported by Doug Richardson · April 1st, 2010 @ 05:17 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Doug Richardson
    Doug Richardson

    I'm looking into this. If I have trouble with it I'll ask for help.

    April 1st, 2010 @ 03:29 PM

  2. Emilio Tagua
    Emilio Tagua
    • State changed from new to invalid

    Hey Doug,

    You need to update Arel, try "bundler install" to use latest git version.

    Arel handles now ranges with excluded end, your Arel version is probably missing this commit:

    http://github.com/rails/arel/commit/233ee77f4511255ff2ff7c0b0ebf1ce...

    April 1st, 2010 @ 07:34 PM

  3. Doug Richardson
    Doug Richardson

    Yup, that was it. Thanks!

    April 2nd, 2010 @ 03:44 AM