gitlab-org--gitlab-foss/spec/support/matchers/have_emoji.rb
2018-04-11 10:51:44 +02:00

5 lines
156 B
Ruby

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