Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Oct 17, 2024
1 parent c137deb commit 6f99ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cases/schema_dumper_test_sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
_(columns["nchar_col"].sql_type).must_equal "nchar(1)"
_(columns["ntext_col"].sql_type).must_equal "ntext"
_(columns["binary_basic_col"].sql_type).must_equal "binary(1)"
_(columns["binary_basic_16_col"].sql_type).must_equal "binary(16)"
_(columns["varbinary_col"].sql_type).must_equal "varbinary(8000)"
_(columns["uuid_col"].sql_type).must_equal "uniqueidentifier"
_(columns["sstimestamp_col"].sql_type).must_equal "timestamp"
Expand All @@ -122,6 +123,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
assert_line :nchar_col, type: "nchar", limit: 1
assert_line :ntext_col, type: "ntext"
assert_line :binary_basic_col, type: "binary_basic", limit: 1
assert_line :binary_basic_16_col, type: "binary_basic", limit: 16
assert_line :varbinary_col, type: "varbinary"
assert_line :uuid_col, type: "uuid"
assert_line :sstimestamp_col, type: "ss_timestamp", null: false
Expand Down
1 change: 1 addition & 0 deletions test/schema/sqlserver_specific_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
t.nchar :nchar_col
t.ntext :ntext_col
t.binary_basic :binary_basic_col
t.binary_basic :binary_basic_16_col, limit: 16
t.varbinary :varbinary_col
t.uuid :uuid_col
t.ss_timestamp :sstimestamp_col
Expand Down

0 comments on commit 6f99ea0

Please sign in to comment.