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

have_emoji.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 273bd0b7f4018ac49cff50d6f457d16fbe78a748 (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

RSpec::Matchers.define :have_emoji do |emoji_name|
  match do |actual|
    expect(actual).to have_selector("gl-emoji[data-name='#{emoji_name}']")
  end
end