docbrown/spec/helpers/rate_limit_checker_helper_spec.rb
Mac Siri 842e6880b8
Routine rubocop fix on /spec (#19217)
* Softrun rubocop

* Hardrun rubocop (-A)

* Change a rubocop rule

* Add missing cops

* Undo & redo rubocop -A
2023-03-21 09:55:26 -04:00

13 lines
446 B
Ruby

require "rails_helper"
describe RateLimitCheckerHelper do
describe "#configurable_rate_limits" do
it "returns a hash with the right structure" do
settings_keys = Settings::RateLimit.keys.map(&:to_sym)
helper.configurable_rate_limits.each do |key, value_hash|
expect(settings_keys).to include(key)
expect(value_hash.keys).to match_array(%i[title min placeholder description enabled])
end
end
end
end