Skip to content
Snippets Groups Projects
Commit 2b0426a4 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Fix tests due to error key changed

parent aae71188
No related branches found
No related tags found
1 merge request!9219Artifact Expiration Defaults
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment