Skip to content

Commit 93884c6

Browse files
committed
Fix deprecated enum syntax in tests
1 parent 1a92af2 commit 93884c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

activerecord/test/cases/adapters/abstract_mysql_adapter/mysql_enum_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MySQLEnumTest < ActiveRecord::AbstractMysqlTestCase
1111
class EnumTest < ActiveRecord::Base
1212
attribute :state, :integer
1313

14-
enum state: {
14+
enum :state, {
1515
start: 0,
1616
middle: 1,
1717
finish: 2

activerecord/test/cases/adapters/postgresql/enum_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ class PostgresqlEnumTest < ActiveRecord::PostgreSQLTestCase
1111
class PostgresqlEnum < ActiveRecord::Base
1212
self.table_name = "postgresql_enums"
1313

14-
enum current_mood: {
14+
enum :current_mood, {
1515
sad: "sad",
1616
okay: "ok", # different spelling
1717
happy: "happy",
1818
aliased_field: "happy"
19-
}, _prefix: true
19+
}, prefix: true
2020
end
2121

2222
def setup

0 commit comments

Comments
 (0)