Skip to content

Commit 16c3949

Browse files
authored
Merge pull request #771 from aidanharan/fully-qualified-identifier-tests
Rails 6: Fix fully qualified identifier tests
2 parents ddc6c60 + b3492a8 commit 16c3949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cases/fully_qualified_identifier_test_sqlserver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ class FullyQualifiedIdentifierTestSQLServer < ActiveRecord::TestCase
4242

4343
it 'should not use fully qualified table name in order clause' do
4444
table = Arel::Table.new(:table)
45-
expected_sql = "SELECT * FROM [my.server].[db].[schema].[table] ORDER BY [table].[name]"
45+
expected_sql = "SELECT * FROM [my.server].[db].[schema].[table] ORDER BY [table].[name]"
4646
assert_equal expected_sql, table.project(Arel.star).order(table[:name]).to_sql
4747
end
4848

4949
it 'should use fully qualified table name in insert statement' do
5050
manager = Arel::InsertManager.new
5151
manager.into Arel::Table.new(:table)
52-
manager.values = manager.create_values [Arel.sql('*')], %w{ a }
52+
manager.values = manager.create_values [Arel.sql('*')]
5353
expected_sql = "INSERT INTO [my.server].[db].[schema].[table] VALUES (*)"
5454
quietly { assert_equal expected_sql, manager.to_sql }
5555
end

0 commit comments

Comments
 (0)