diff options
Diffstat (limited to 'spec/models/plan_limits_spec.rb')
-rw-r--r-- | spec/models/plan_limits_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/plan_limits_spec.rb b/spec/models/plan_limits_spec.rb index d4e550657c8..3705cab7ef5 100644 --- a/spec/models/plan_limits_spec.rb +++ b/spec/models/plan_limits_spec.rb @@ -219,14 +219,21 @@ RSpec.describe PlanLimits do ci_daily_pipeline_schedule_triggers repository_size security_policy_scan_execution_schedules + enforcement_limit + notification_limit ] + disabled_max_artifact_size_columns end + let(:datetime_columns) do + %w[dashboard_limit_enabled_at] + end + it "has positive values for enabled limits" do attributes = plan_limits.attributes attributes = attributes.except(described_class.primary_key) attributes = attributes.except(described_class.reflections.values.map(&:foreign_key)) attributes = attributes.except(*columns_with_zero) + attributes = attributes.except(*datetime_columns) expect(attributes).to all(include(be_positive)) end |