Welcome to mirror list, hosted at ThFree Co, Russian Federation.

querying_spec.rb « banzai « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 27da2a7439c53546ba0400ee3d0613594474cf07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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