mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fail with the additional context
This commit is contained in:
parent
7c617b5a7b
commit
e9f3bbaeff
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module Ameba
|
||||||
subject = Rule::Lint::EmptyExpression.new
|
subject = Rule::Lint::EmptyExpression.new
|
||||||
|
|
||||||
private def it_detects_empty_expression(code)
|
private def it_detects_empty_expression(code)
|
||||||
it "detects empty expression" do
|
it %(detects empty expression "#{code}") do
|
||||||
s = Source.new code
|
s = Source.new code
|
||||||
rule = Rule::Lint::EmptyExpression.new
|
rule = Rule::Lint::EmptyExpression.new
|
||||||
rule.catch(s).should_not be_valid
|
rule.catch(s).should_not be_valid
|
||||||
|
|
Loading…
Reference in a new issue