diff options
Diffstat (limited to 'spec/support/matchers/have_emoji.rb')
-rw-r--r-- | spec/support/matchers/have_emoji.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/matchers/have_emoji.rb b/spec/support/matchers/have_emoji.rb new file mode 100644 index 00000000000..23fb8e9c1c4 --- /dev/null +++ b/spec/support/matchers/have_emoji.rb @@ -0,0 +1,5 @@ +RSpec::Matchers.define :have_emoji do |emoji_name| + match do |actual| + expect(actual).to have_selector("gl-emoji[data-name='#{emoji_name}']") + end +end |