gitlab-org--gitlab-foss/spec/lib/banzai/querying_spec.rb

14 lines
294 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Banzai::Querying do
describe '.css' do
it 'optimizes queries for elements with classes' do
document = double(:document)
expect(document).to receive(:xpath).with(/^descendant::a/)
described_class.css(document, 'a.gfm')
end
end
end