From 6009107caf9b0b570519b17aa0745fdb5a8c3b1f Mon Sep 17 00:00:00 2001 From: Yosuke Kabuto Date: Sun, 11 Sep 2016 15:29:00 +0900 Subject: Add tests for ActiveRecord::Enum#enum when suffix specified Make name of attribute medium instead of normal --- activerecord/test/models/book.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb index 4c275fdebb..17bf3fbcb4 100644 --- a/activerecord/test/models/book.rb +++ b/activerecord/test/models/book.rb @@ -14,6 +14,7 @@ class Book < ActiveRecord::Base enum author_visibility: [:visible, :invisible], _prefix: true enum illustrator_visibility: [:visible, :invisible], _prefix: true enum font_size: [:small, :medium, :large], _prefix: :with, _suffix: true + enum difficulty: [:easy, :medium, :hard], _suffix: :to_read enum cover: { hard: "hard", soft: "soft" } def published! -- cgit v1.2.3