Skip to content

Commit

Permalink
Reaction emoji with consistent underscores (forem#19116)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaw6 authored Feb 15, 2023
1 parent ca96be1 commit a4654f2
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 298 deletions.
2 changes: 1 addition & 1 deletion config/locales/views/reactions/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ en:
lightbulb: Lightbulb
raised_hands: Raised hands
rocket: Rocket
exploding-head: Exploding head
exploding_head: Exploding head
fire: Fire
drawer_button: Add reaction
summary:
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views/reactions/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fr:
lightbulb: Lightbulb
raised_hands: Raised hands
rocket: Rocket
exploding-head: Exploding head
exploding_head: Exploding head
fire: Fire
drawer_button: Add reaction
summary:
Expand Down
2 changes: 1 addition & 1 deletion config/reactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unicorn:
position: 2
name: Unicorn
icon: multi-unicorn
exploding-head:
exploding_head:
position: 3
icon: exploding-head
raised_hands:
Expand Down
4 changes: 2 additions & 2 deletions spec/models/reaction_category_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
end

it "lists all category slugs" do
expect(described_class.all_slugs).to contain_exactly(*%i[exploding-head fire hands like
expect(described_class.all_slugs).to contain_exactly(*%i[exploding_head fire hands like
raised_hands readinglist thinking
thumbsdown thumbsup unicorn vomit])
end

it "lists public categories" do
expect(described_class.public).to contain_exactly(*%i[like unicorn raised_hands fire exploding-head])
expect(described_class.public).to contain_exactly(*%i[like unicorn raised_hands fire exploding_head])
end

it "lists privileged categories" do
Expand Down
Loading

0 comments on commit a4654f2

Please sign in to comment.