Skip to content

Commit dfc29b5

Browse files
committed
Make .execute_procedure test for times ignore usec.
1 parent 32968ae commit dfc29b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/execute_procedure_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ExecuteProcedureTestSQLServer < ActiveRecord::TestCase
3838
it 'uses the proper timezone' do
3939
date_proc = connection.execute_procedure('my_getutcdate').first['utcdate']
4040
date_base = connection.select_value('select GETUTCDATE()')
41-
assert_equal date_base, date_proc
41+
assert_equal date_base.change(usec: 0), date_proc.change(usec: 0)
4242
end
4343

4444
end

0 commit comments

Comments
 (0)