2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Upgrade rspec to 3.4.0.

This commit is contained in:
Guo Xiang Tan 2016-05-30 11:38:04 +08:00
parent e11c83341c
commit cb5be1fe8f
No known key found for this signature in database
GPG key ID: 19C321C8952B0F72
15 changed files with 40 additions and 44 deletions

View file

@ -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