mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Syntax rule running priorities
This commit is contained in:
parent
c9db63bf34
commit
4c85ad7c75
8 changed files with 64 additions and 12 deletions
|
@ -9,7 +9,6 @@ module Ameba::Rule
|
|||
def hello
|
||||
puts "totally valid"
|
||||
rescue e: Exception
|
||||
#
|
||||
end
|
||||
)
|
||||
subject.catch(s).should be_valid
|
||||
|
@ -20,7 +19,6 @@ module Ameba::Rule
|
|||
def hello
|
||||
puts "invalid"
|
||||
rescue Exception => e
|
||||
#
|
||||
end
|
||||
)
|
||||
subject.catch(s).should_not be_valid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue