This project is archived and is in readonly mode.

#4307 ✓invalid
Doug Richardson

activerecord finder_test fails 1 test

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

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)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages