mirror of https://github.com/rails/rails
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
This commit is contained in:
parent
41a2a63fee
commit
13fccff283
|
@ -333,8 +333,8 @@ class FinderTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_select_values
|
def test_select_values
|
||||||
assert_equal ["1","2","3"], Company.connection.select_values("SELECT id 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"], Company.connection.select_values("SELECT name FROM companies ORDER BY id LIMIT 3")
|
assert_equal ["37signals","Summit","Microsoft", "Flamboyant Software", "Ex Nihilo", "RailsCore", "Leetsoft", "Jadedpixel"], Company.connection.select_values("SELECT name FROM companies ORDER BY id")
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
|
@ -35,13 +35,16 @@ another_client:
|
||||||
ruby_type: Client
|
ruby_type: Client
|
||||||
|
|
||||||
rails_core:
|
rails_core:
|
||||||
id: 6
|
id: 6
|
||||||
|
name: RailsCore
|
||||||
type: DependentFirm
|
type: DependentFirm
|
||||||
|
|
||||||
leetsoft:
|
leetsoft:
|
||||||
id: 7
|
id: 7
|
||||||
|
name: Leetsoft
|
||||||
client_of: 6
|
client_of: 6
|
||||||
|
|
||||||
jadedpixel:
|
jadedpixel:
|
||||||
id: 8
|
id: 8
|
||||||
|
name: Jadedpixel
|
||||||
client_of: 6
|
client_of: 6
|
Loading…
Reference in New Issue