mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Initial release of Discourse
This commit is contained in:
5
spec/support/rate_limit_matcher.rb
Normal file
5
spec/support/rate_limit_matcher.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
RSpec::Matchers.define :rate_limit do |attribute|
|
||||
match do |model|
|
||||
model.class.include? RateLimiter::OnCreateRecord
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user