diff --git a/spec/oga/xpath/compiler_spec.rb b/spec/oga/xpath/compiler_spec.rb
index 61e6218..18b8a22 100644
--- a/spec/oga/xpath/compiler_spec.rb
+++ b/spec/oga/xpath/compiler_spec.rb
@@ -27,7 +27,7 @@ describe Oga::XPath::Compiler do
describe 'calling the compiled Proc' do
it 'returns a NodeSet' do
- doc = parse_xml('')
+ doc = parse('')
ast = parse_xpath('foo')
block = @compiler.compile(ast)