diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-06 00:14:54 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-06 00:14:54 +0400 |
commit | b3bbf53e9bd0d3eb4b947f0e1f01887120e7a2fb (patch) | |
tree | b3f7787eba79a73f501ae13a2400109c81701b02 /spec/helpers | |
parent | 67a6a0b29b1ca9563244f914bd0eaf0165389efd (diff) |
Set the size of emoji to be 20x20
Forgot they were so big!
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/gitlab_markdown_helper_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb index e2b38f0a715..3e7a02c6e35 100644 --- a/spec/helpers/gitlab_markdown_helper_spec.rb +++ b/spec/helpers/gitlab_markdown_helper_spec.rb @@ -234,6 +234,12 @@ describe GitlabMarkdownHelper do gfm(":+1:").should match('class="emoji"') end + it "sets height and width" do + actual = gfm(":+1:") + actual.should match(/width="20"/) + actual.should match(/height="20"/) + end + it "keeps whitespace intact" do gfm("This deserves a :+1: big time.").should match(/deserves a <img.+\/> big time/) end |