Fix tests due to error key changed
This commit is contained in:
parent
aae71188ee
commit
2b0426a497
|
@ -309,6 +309,6 @@ class ApplicationSetting < ActiveRecord::Base
|
|||
def check_default_artifacts_expire_in
|
||||
ChronicDuration.parse(default_artifacts_expire_in)
|
||||
rescue ChronicDuration::DurationParseError
|
||||
errors.add(:default_artifacts_expiration, "is not a correct duration")
|
||||
errors.add(:default_artifacts_expire_in, "is not a correct duration")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -59,7 +59,7 @@ describe ApplicationSetting, models: true do
|
|||
def expect_invalid
|
||||
expect(setting).to be_invalid
|
||||
expect(setting.errors.messages)
|
||||
.to have_key(:default_artifacts_expiration)
|
||||
.to have_key(:default_artifacts_expire_in)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue