Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-11 11:34:42 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-04-11 11:51:44 +0300
commit2bf3846adcac843958837a32fafdeb63d067a532 (patch)
treeba1317eea7ac5bb9c7a2f4264e1394bf926c980b /spec/support/matchers
parentc39e3f22ce12a302e294deb3523414e4a684b6fb (diff)
Add matcher for emoji
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/have_emoji.rb5
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