```ruby
require 'spec_helper'

describe Oga::XPath::Parser do
  context 'predicates' do
    example 'parse a single predicate' do
      parse_xpath('/foo[@class="bar"]').should == s(
        :xpath,
        s(
          :path,
          s(
            :node_test,
            s(:name, nil, 'foo'),
            s(:eq, s(:axis, 'attribute', 'class'), s(:string, 'bar'))
          )
        )
      )
    end

    example 'parse a predicate using the or operator' do
      parse_xpath('/foo[@class="bar" or @class="baz"]').should == s(
        :xpath,
        s(
          :path,
          s(
            :node_test,
            s(:name, nil, 'foo'),
            s(
              :or,
              s(:eq, s(:axis, 'attribute', 'class'), s(:string, 'bar')),
              s(:eq, s(:axis, 'attribute', 'class'), s(:string, 'baz'))
            )
          )
        )
      )
    end
  end
end
```

Use (name) nodes for @foo axes.
user
```ruby
require 'spec_helper'

describe Oga::XPath::Parser do
  context 'predicates' do
    example 'parse a single predicate' do
      parse_xpath('/foo[@class="bar"]').should == s(
        :xpath,
        s(
          :path,
          s(
            :node_test,
            s(:name, nil, 'foo'),
            s(
              :eq,
              s(:axis, 'attribute', s(:name, nil, 'class')),
              s(:string, 'bar')
            )
          )
        )
      )
    end

    example 'parse a predicate using the or operator' do
      parse_xpath('/foo[@class="bar" or @class="baz"]').should == s(
        :xpath,
        s(
          :path,
          s(
            :node_test,
            s(:name, nil, 'foo'),
            s(
              :or,
              s(
                :eq,
                s(:axis, 'attribute', s(:name, nil, 'class')),
                s(:string, 'bar')
              ),
              s(
                :eq,
                s(:axis, 'attribute', s(:name, nil, 'class')),
                s(:string, 'baz')
              )
            )
          )
        )
      )
    end
  end
end
```
assistant