summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-01-03 18:37:28 +0000
committerFatih Acet <acetfatih@gmail.com>2017-01-03 18:37:28 +0000
commitdb7a063dd28287fe7ba94982a48c8c9e185ab7eb (patch)
tree6eff5b2ab42141bafeaae38395e31851984db544 /spec/helpers
parent4d253c356fc509d9bcc60e77a016d40ba66957f8 (diff)
parentdbe0d0fb5a0ae889b452cd7f2ba1ada7c8e6441d (diff)
downloadgitlab-ce-db7a063dd28287fe7ba94982a48c8c9e185ab7eb.tar.gz
Merge branch '26168-emoji-reactions-missing-tooltip-when-not-logged-in' into 'master'
Disable award emoji button but display tooltip Closes #26168 See merge request !8382
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/issues_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/issues_helper_spec.rb b/spec/helpers/issues_helper_spec.rb
index abe08d95ece..9c7e0ee2fe0 100644
--- a/spec/helpers/issues_helper_spec.rb
+++ b/spec/helpers/issues_helper_spec.rb
@@ -98,15 +98,15 @@ describe IssuesHelper do
end
end
- describe '#award_active_class' do
+ describe '#award_state_class' do
let!(:upvote) { create(:award_emoji) }
- it "returns empty string for unauthenticated user" do
- expect(award_active_class(AwardEmoji.all, nil)).to eq("")
+ it "returns disabled string for unauthenticated user" do
+ expect(award_state_class(AwardEmoji.all, nil)).to eq("disabled")
end
it "returns active string for author" do
- expect(award_active_class(AwardEmoji.all, upvote.user)).to eq("active")
+ expect(award_state_class(AwardEmoji.all, upvote.user)).to eq("active")
end
end