You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(@logs).toinclude(an_object_having_attributes(message: "The parameter '$bad_int' must be a literal type, not a Puppet::Pops::Model::AccessExpression"))
522
-
expect(@logs).toinclude(an_object_having_attributes(message: "The parameter '$double_brackets' must be a literal type, not a Puppet::Pops::Model::AccessExpression"))
521
+
expect(@logs).tohave_matching_log_with_source(/The parameter '\$bad_int' must be a literal type, not a Puppet::Pops::Model::AccessExpression/,"#{code_dir}/non_literal.pp",1,37)
522
+
expect(@logs).tohave_matching_log_with_source(/The parameter '\$double_brackets' must be a literal type, not a Puppet::Pops::Model::AccessExpression/,"#{code_dir}/non_literal_2.pp",1,44)
523
523
end
524
524
525
525
it"errors in strict mode if non-literal class parameter is given"do
expect(@logs).tohave_matching_log_with_source(/The parameter '\$bad_int' must be a literal type, not a Puppet::Pops::Model::AccessExpression/,"#{code_dir}/non_literal.pp",1,37)
530
+
expect(@logs).tohave_matching_log_with_source(/The parameter '\$double_brackets' must be a literal type, not a Puppet::Pops::Model::AccessExpression/,"#{code_dir}/non_literal_2.pp",1,44)
531
+
529
532
expect(result).toeq({
530
533
"production"=>{
531
534
"#{code_dir}/non_literal.pp"=>
532
-
{:error=>"The parameter '$bad_int' must be a literal type, not a Puppet::Pops::Model::AccessExpression (file: #{code_dir}/non_literal.pp, line: 1, column: 37)"},
535
+
{:error=>"The parameter '\$bad_int' is invalid: The expression <1-3> is not a valid type specification."},
533
536
"#{code_dir}/non_literal_2.pp"=>
534
-
{:error=>"The parameter '$double_brackets' must be a literal type, not a Puppet::Pops::Model::AccessExpression (file: #{code_dir}/non_literal_2.pp, line: 1, column: 44)"}
537
+
{:error=>"The parameter '\$double_brackets' is invalid: The expression <Optional[[String]]> is not a valid type specification."}
0 commit comments