<commit_before>require 'spec_helper'

# Specs in this file have access to a helper object that includes
# the NotificationsHelper. For example:
#
# describe NotificationsHelper do
#   describe "string concat" do
#     it "concats two strings with spaces" do
#       helper.concat_strings("this","that").should == "this that"
#     end
#   end
# end
describe NotificationsHelper do
  pending "add some examples to (or delete) #{__FILE__}"
end<commit_msg>Add specs for NotificationsHelper<commit_after>require 'spec_helper'

describe NotificationsHelper do
  describe 'notification_icon' do
    let(:notification) { stub(disabled?: false, participating?: false, watch?: false) }

    context "disabled notification" do
      before { notification.stub(disabled?: true) }

      it "has a red icon" do
        notification_icon(notification).should match('class="icon-circle cred"')
      end
    end

    context "participating notification" do
      before { notification.stub(participating?: true) }

      it "has a blue icon" do
        notification_icon(notification).should match('class="icon-circle cblue"')
      end
    end

    context "watched notification" do
      before { notification.stub(watch?: true) }

      it "has a green icon" do
        notification_icon(notification).should match('class="icon-circle cgreen"')
      end
    end

    it "has a blue icon" do
      notification_icon(notification).should match('class="icon-circle-blank cblue"')
    end
  end
end
{'fraction_non_alphanumeric': 0.0963611859838275, 'fraction_numerical': 0.0, 'mean_word_length': 3.640625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4727597', 'n_tokens_mistral': 410, 'n_tokens_neox': 400, 'n_words': 133}