From 892d50043026c7e125ab0d34e66586a4040e2451 Mon Sep 17 00:00:00 2001 From: msepga Date: Tue, 26 Nov 2024 16:56:33 -0500 Subject: [PATCH] Fix tests --- spec/lib/parse_spec.rb | 3 ++- spec/lib/pg_query/deparse_bad_tree_spec.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/lib/parse_spec.rb b/spec/lib/parse_spec.rb index 16dfa97d..998ccd60 100644 --- a/spec/lib/parse_spec.rb +++ b/spec/lib/parse_spec.rb @@ -340,7 +340,8 @@ PgQuery::RawStmt.new( stmt: PgQuery::Node.new( transaction_stmt: PgQuery::TransactionStmt.new( - kind: :TRANS_STMT_COMMIT + kind: :TRANS_STMT_COMMIT, + location: -1 ) ) ) diff --git a/spec/lib/pg_query/deparse_bad_tree_spec.rb b/spec/lib/pg_query/deparse_bad_tree_spec.rb index c23db3ca..2c26103e 100644 --- a/spec/lib/pg_query/deparse_bad_tree_spec.rb +++ b/spec/lib/pg_query/deparse_bad_tree_spec.rb @@ -25,7 +25,7 @@ expect { PgQuery.deparse(tree) }.to raise_error do |error| expect(error).to be_a(described_class::ParseError) - expect(error.message).to eq "deparse: error in deparseTargetList: ResTarget without val (postgres_deparse.c:1553)" + expect(error.message).to eq "deparse: error in deparseTargetList: ResTarget without val (postgres_deparse.c:1582)" end end end