mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
parent
9a42d14a1e
commit
44290a6a5d
4 changed files with 39 additions and 1 deletions
|
@ -95,6 +95,22 @@ module Ameba
|
|||
end
|
||||
)
|
||||
|
||||
it "does not report emtpy expression in macro" do
|
||||
s = Source.new %q(
|
||||
module MyModule
|
||||
macro conditional_error_for_inline_callbacks
|
||||
\{%
|
||||
raise ""
|
||||
%}
|
||||
end
|
||||
|
||||
macro before_save(x = nil)
|
||||
end
|
||||
end
|
||||
)
|
||||
subject.catch(s).should be_valid
|
||||
end
|
||||
|
||||
it "reports rule, location and message" do
|
||||
s = Source.new %(
|
||||
if ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue