BigW Consortium Gitlab

Commit 91a42a1a by Grzegorz Bizon

Add test example for syntax error in pipeline expressions

parent cee3be29
......@@ -42,5 +42,12 @@ describe Gitlab::Ci::Pipeline::Expression::Lexer do
expect { lexer.tokenize }
.to raise_error described_class::SyntaxError
end
it 'raises syntax error in case of finding unknown tokens' do
lexer = described_class.new('$V1 123 $V2')
expect { lexer.tokenize }
.to raise_error described_class::SyntaxError
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment