gitlab-org--gitlab-foss/spec/support/matchers/have_emoji.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
187 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-04-11 04:34:42 -04:00
RSpec::Matchers.define :have_emoji do |emoji_name|
match do |actual|
expect(actual).to have_selector("gl-emoji[data-name='#{emoji_name}']")
end
end