mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
DEV: Set a limit for ApiKey#description (#21502)
This commit is contained in:
@ -6,6 +6,7 @@ RSpec.describe ApiKey do
|
||||
|
||||
it { is_expected.to belong_to :user }
|
||||
it { is_expected.to belong_to :created_by }
|
||||
it { is_expected.to validate_length_of(:description).is_at_most(255) }
|
||||
|
||||
it "generates a key when saving" do
|
||||
api_key = ApiKey.new
|
||||
|
Reference in New Issue
Block a user