debian-mirror-gitlab/spec/lib/banzai/querying_spec.rb
2023-04-23 21:23:45 +05:30

15 lines
370 B
Ruby

# frozen_string_literal: true
require 'fast_spec_helper'
RSpec.describe Banzai::Querying, feature_category: :team_planning 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