debian-mirror-gitlab/spec/support/matchers/have_emoji.rb
2019-10-12 21:52:04 +05:30

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