discourse/spec/support/matchers/rate_limit_matcher.rb
Jarek Radosz 960f34da9d
DEV: Finish extracting rails spec helpers (#40552)
Also move matchers to a subdirectory
2026-06-04 14:11:14 +02:00

5 lines
154 B
Ruby
Vendored

# frozen_string_literal: true
RSpec::Matchers.define :rate_limit do |attribute|
match { |model| model.class.include? RateLimiter::OnCreateRecord }
end