debian-mirror-gitlab/spec/helpers/notifications_helper_spec.rb

17 lines
715 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
require 'spec_helper'
describe NotificationsHelper do
describe 'notification_icon' do
2016-06-02 11:05:42 +05:30
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
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
describe 'notification_title' do
it { expect(notification_title(:watch)).to match('Watch') }
it { expect(notification_title(:mention)).to match('On mention') }
2014-09-02 18:07:02 +05:30
end
end