Skip to content

Commit a361f34

Browse files
Address unrelated test failures
1 parent 1f16c8c commit a361f34

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

lib/sqlite3/pragmas.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,13 @@ def table_info table
543543

544544
tweak_default(new_row) if needs_tweak_default
545545

546+
# Ensure the type value is downcased. On Mac and Windows
547+
# platforms this value is now being returned as all upper
548+
# case.
549+
if new_row['type']
550+
new_row['type'] = new_row['type'].downcase
551+
end
552+
546553
if block_given?
547554
yield new_row
548555
else

test/test_integration_resultset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_enumerable
118118
end
119119

120120
def test_types
121-
assert_equal [ "integer", "text" ], @result.types
121+
assert_equal [ "integer", "text" ], @result.types.map { |t| t.downcase }
122122
end
123123

124124
def test_columns

0 commit comments

Comments
 (0)