diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2005-10-16 20:50:06 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2005-10-16 20:50:06 +0000 |
commit | 13fccff28321850375905bffcb4e2b25fcb50921 (patch) | |
tree | c2c10da39ed6e552a24c2db6a42a9b86f606077f | |
parent | 41a2a63fee25fe6111ac331fc97e9de54e78d456 (diff) | |
download | rails-13fccff28321850375905bffcb4e2b25fcb50921.tar.gz rails-13fccff28321850375905bffcb4e2b25fcb50921.tar.bz2 rails-13fccff28321850375905bffcb4e2b25fcb50921.zip |
modified finder test a tiny bit so that it passes on sqlserver
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/test/finder_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/fixtures/companies.yml | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb index d40c1272f1..073eea92ad 100644 --- a/activerecord/test/finder_test.rb +++ b/activerecord/test/finder_test.rb @@ -333,8 +333,8 @@ class FinderTest < Test::Unit::TestCase end def test_select_values - assert_equal ["1","2","3"], Company.connection.select_values("SELECT id FROM companies ORDER BY id LIMIT 3") - assert_equal ["37signals","Summit","Microsoft"], Company.connection.select_values("SELECT name FROM companies ORDER BY id LIMIT 3") + assert_equal ["1","2","3","4","5","6","7","8"], Company.connection.select_values("SELECT id FROM companies ORDER BY id") + assert_equal ["37signals","Summit","Microsoft", "Flamboyant Software", "Ex Nihilo", "RailsCore", "Leetsoft", "Jadedpixel"], Company.connection.select_values("SELECT name FROM companies ORDER BY id") end protected diff --git a/activerecord/test/fixtures/companies.yml b/activerecord/test/fixtures/companies.yml index 29b949e16b..f2e638d382 100644 --- a/activerecord/test/fixtures/companies.yml +++ b/activerecord/test/fixtures/companies.yml @@ -35,13 +35,16 @@ another_client: ruby_type: Client rails_core: - id: 6 + id: 6 + name: RailsCore type: DependentFirm leetsoft: - id: 7 + id: 7 + name: Leetsoft client_of: 6 jadedpixel: - id: 8 + id: 8 + name: Jadedpixel client_of: 6
\ No newline at end of file |