Skip to content

Commit

Permalink
Fixed test warnings [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 26, 2024
1 parent 2d9c363 commit f8235de
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
8 changes: 7 additions & 1 deletion test/query_methods/mysql_json_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
require_relative "query_methods_helper"

class MysqlJsonEvent < MysqlBase
serialize :properties, JSON if connection.send(:mariadb?)
if connection.send(:mariadb?)
if ActiveRecord::VERSION::STRING.to_f >= 7.1
serialize :properties, coder: JSON
else
serialize :properties, JSON
end
end
end

class MysqlJsonTest < Minitest::Test
Expand Down
6 changes: 5 additions & 1 deletion test/query_methods/mysql_text_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
require_relative "query_methods_helper"

class MysqlTextEvent < MysqlBase
serialize :properties, JSON
if ActiveRecord::VERSION::STRING.to_f >= 7.1
serialize :properties, coder: JSON
else
serialize :properties, JSON
end
end

class MysqlTextTest < Minitest::Test
Expand Down
6 changes: 5 additions & 1 deletion test/query_methods/postgresql_text_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
require_relative "query_methods_helper"

class PostgresqlTextEvent < PostgresqlBase
serialize :properties, JSON
if ActiveRecord::VERSION::STRING.to_f >= 7.1
serialize :properties, coder: JSON
else
serialize :properties, JSON
end
end

class PostgresqlTextTest < Minitest::Test
Expand Down

0 comments on commit f8235de

Please sign in to comment.