Skip to content

Commit 76f7d09

Browse files
committed
Merge branch 'master' of git://github.com/snowblink/rails-sqlserver-adapter
2 parents 535e9c8 + 2f67cd3 commit 76f7d09

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/cases/adapter_test_sqlserver.rb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,20 @@ def assert_all_statements_used_are_closed(&block)
9595
end
9696

9797
class TypeToSqlForIntegersTest < ActiveRecord::TestCase
98-
98+
9999
def setup
100100
@connection = ActiveRecord::Base.connection
101101
end
102-
102+
103103
# TODO - ugh these tests are pretty literal...
104104
def test_should_create_integers_when_no_limit_supplied
105105
assert_equal 'integer', @connection.type_to_sql(:integer)
106106
end
107-
107+
108108
def test_should_create_integers_when_limit_is_4
109109
assert_equal 'integer', @connection.type_to_sql(:integer, 4)
110110
end
111-
111+
112112
def test_should_create_integers_when_limit_is_3
113113
assert_equal 'integer', @connection.type_to_sql(:integer, 3)
114114
end
@@ -124,7 +124,7 @@ def test_should_create_bigints_when_limit_is_greateer_than_4
124124
assert_equal 'bigint', @connection.type_to_sql(:integer, 7)
125125
assert_equal 'bigint', @connection.type_to_sql(:integer, 8)
126126
end
127-
127+
128128
end
129129

130130
# NOTE: The existing schema_dumper_test doesn't test the limits of <4 limit things
@@ -142,17 +142,17 @@ def test_schema_dump_includes_limit_constraint_for_integer_columns
142142
assert_match %r{c_int_4.*}, output
143143
assert_no_match %r{c_int_3.*:limit}, output
144144
assert_no_match %r{c_int_4.*:limit}, output
145-
end
145+
end
146146
end
147147

148148
class StringDefaultsTest < ActiveRecord::TestCase
149149
class StringDefaults < ActiveRecord::Base; end;
150-
150+
151151
def test_sqlserver_default_strings_before_save
152152
default = StringDefaults.new
153153
assert_equal nil, default.string_with_null_default
154154
assert_equal 'null', default.string_with_pretend_null_one
155-
assert_equal '(null)', default.string_with_pretend_null_two
155+
assert_equal '(null)', default.string_with_pretend_null_two
156156
assert_equal 'NULL', default.string_with_pretend_null_three
157157
assert_equal '(NULL)', default.string_with_pretend_null_four
158158
end
@@ -161,10 +161,9 @@ def test_sqlserver_default_strings_after_save
161161
default = StringDefaults.create
162162
assert_equal nil, default.string_with_null_default
163163
assert_equal 'null', default.string_with_pretend_null_one
164-
assert_equal '(null)', default.string_with_pretend_null_two
164+
assert_equal '(null)', default.string_with_pretend_null_two
165165
assert_equal 'NULL', default.string_with_pretend_null_three
166166
assert_equal '(NULL)', default.string_with_pretend_null_four
167167
end
168168

169-
170-
end
169+
end

0 commit comments

Comments
 (0)