diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-06 11:20:17 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-06 11:20:17 +0200 |
commit | 7ad7e10feed624e263b5b80f5cafd4b0ed900ad7 (patch) | |
tree | c5eb47727ba96c77e61a132ceaedd89218b60ae4 /spec/helpers | |
parent | 9614c52266fd7009c1dd2960564d4f65b1a12f80 (diff) | |
parent | fc809d689a03e69c581c1bb8ed0cf246953a7c08 (diff) | |
download | gitlab-ce-7ad7e10feed624e263b5b80f5cafd4b0ed900ad7.tar.gz |
Merge remote-tracking branch 'origin/master' into rename-ci-commit
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/issues_helper_spec.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/helpers/issues_helper_spec.rb b/spec/helpers/issues_helper_spec.rb index bffe2c18b6f..eae61a54dfc 100644 --- a/spec/helpers/issues_helper_spec.rb +++ b/spec/helpers/issues_helper_spec.rb @@ -163,18 +163,15 @@ describe IssuesHelper do it { is_expected.to eq("!1, !2, or !3") } end - describe "note_active_class" do - before do - @note = create :note - @note1 = create :note - end + describe '#award_active_class' do + let!(:upvote) { create(:award_emoji) } it "returns empty string for unauthenticated user" do - expect(note_active_class(Note.all, nil)).to eq("") + expect(award_active_class(AwardEmoji.all, nil)).to eq("") end it "returns active string for author" do - expect(note_active_class(Note.all, @note.author)).to eq("active") + expect(award_active_class(AwardEmoji.all, upvote.user)).to eq("active") end end |