mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Upgrade rspec to 3.4.0.
This commit is contained in:
@@ -6,7 +6,7 @@ module Plugin
|
||||
end
|
||||
|
||||
def register(name, &blk)
|
||||
raise ArgumentException unless blk && blk.arity == 2
|
||||
raise ArgumentError unless blk && blk.arity == 2
|
||||
filters = @map[name] ||= []
|
||||
filters << blk
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user