summaryrefslogtreecommitdiff
path: root/spec/helpers/services_helper_spec.rb
blob: edc14f86a50df2caef0190519835e007f04c2da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe ServicesHelper do
  describe 'event_action_title' do
    it { expect(event_action_title('comment')).to eq 'Comment' }
    it { expect(event_action_title('something')).to eq 'Something' }
  end

  describe 'event_action_description' do
    it { expect(event_action_description('comment')).to eq 'Comment will be posted on each event' }
    it { expect(event_action_description('something')).to eq nil }
  end
end