summaryrefslogtreecommitdiff
path: root/spec/helpers/notifications_helper_spec.rb
blob: 9d5f009ebe1a802b1386282b677af83ccee7fc75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'

describe NotificationsHelper do
  describe 'notification_icon' do
    it { expect(notification_icon(:disabled)).to match('class="fa fa-microphone-slash fa-fw"') }
    it { expect(notification_icon(:participating)).to match('class="fa fa-volume-up fa-fw"') }
    it { expect(notification_icon(:mention)).to match('class="fa fa-at fa-fw"') }
    it { expect(notification_icon(:global)).to match('class="fa fa-globe fa-fw"') }
    it { expect(notification_icon(:watch)).to match('class="fa fa-eye fa-fw"') }
  end

  describe 'notification_title' do
    it { expect(notification_title(:watch)).to match('Watch') }
    it { expect(notification_title(:mention)).to match('On mention') }
  end
end