mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
parent
3e099e9afc
commit
3887da1438
2 changed files with 7 additions and 3 deletions
|
@ -153,7 +153,7 @@ module Ameba::Rule
|
|||
subject.catch(s).should_not be_valid
|
||||
end
|
||||
|
||||
it "fails if there is an inner redundant block" do
|
||||
it "doesn't report if there is an inner redundant block" do
|
||||
s = Source.new %q(
|
||||
def method
|
||||
begin
|
||||
|
@ -164,7 +164,7 @@ module Ameba::Rule
|
|||
rescue
|
||||
end
|
||||
)
|
||||
subject.catch(s).should_not be_valid
|
||||
subject.catch(s).should be_valid
|
||||
end
|
||||
|
||||
it "fails if there is a redundant block with yield" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue