gitlab-org--gitlab-foss/spec/support/matchers/have_emoji.rb
2019-07-25 17:33:34 +12:00

7 lines
187 B
Ruby

# 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