We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d841bcf commit 006db3aCopy full SHA for 006db3a
spec/node_query/node_rules/parser_spec.rb
@@ -193,9 +193,16 @@ def initialize(id, name)
193
},
194
adapter: adapter
195
)
196
+
197
+ expected_error_message = if RUBY_VERSION >= '3.4.0'
198
+ '{type: "sym"} is not supported'
199
+ else
200
+ '{:type=>"sym"} is not supported'
201
+ end
202
203
expect {
204
rules.query_nodes(node)
- }.to raise_error(NodeQuery::MethodNotSupported, '{:type=>"sym"} is not supported')
205
+ }.to raise_error(NodeQuery::MethodNotSupported, expected_error_message)
206
end
207
208
it 'sets option including_self to false' do
0 commit comments