Fail with the additional context

This commit is contained in:
Sijawusz Pur Rahnama 2022-12-21 17:09:42 +01:00
parent 7c617b5a7b
commit e9f3bbaeff

View file

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