docbrown/spec/helpers/rate_limit_checker_helper_spec.rb
Lisa Sy a64b85ff5e
Update [Rate Limit] form fields with crayons and add TITLE (#10858) [deploy]
* Update form fields with crayons and add TITLE

* Fix merge conflicts and merge w master
2020-10-21 12:43:01 -07:00

12 lines
391 B
Ruby

require "rails_helper"
describe RateLimitCheckerHelper, type: :helper do
describe "#configurable_rate_limits" do
it "returns a hash with the right structure" do
helper.configurable_rate_limits.each do |key, value_hash|
expect(key).to match(/\Arate_limit/)
expect(value_hash.keys).to match_array(%i[title min placeholder description])
end
end
end
end