debian-mirror-gitlab/spec/support/matchers/have_emoji.rb

6 lines
156 B
Ruby
Raw Normal View History

2018-05-09 12:01:36 +05:30
RSpec::Matchers.define :have_emoji do |emoji_name|
match do |actual|
expect(actual).to have_selector("gl-emoji[data-name='#{emoji_name}']")
end
end