Skip to content

Commit 8dbc5b5

Browse files
committed
Spec: adjust text field lengths following utf8mb4 change
1 parent e7f7f1a commit 8dbc5b5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

spec/mysql2/result_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
it "should return correct types" do
134134
expected_types = %w[
135135
mediumint(9)
136-
varchar(10)
136+
varchar(13)
137137
bit(64)
138138
bit(1)
139139
tinyint(4)
@@ -152,16 +152,16 @@
152152
timestamp
153153
time
154154
year(4)
155-
char(10)
156-
varchar(10)
155+
char(13)
156+
varchar(13)
157157
binary(10)
158158
varbinary(10)
159159
tinyblob
160-
tinytext
160+
text(1020)
161161
blob
162-
text
162+
text(262140)
163163
mediumblob
164-
mediumtext
164+
text(67108860)
165165
longblob
166166
longtext
167167
enum

spec/spec_helper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
RSpec.configure do |config|
2020
config.disable_monkey_patching!
2121

22+
config.expect_with :rspec do |expectations|
23+
expectations.max_formatted_output_length = 1200
24+
end
25+
2226
def with_internal_encoding(encoding)
2327
old_enc = Encoding.default_internal
2428
old_verbose = $VERBOSE

0 commit comments

Comments
 (0)