summaryrefslogtreecommitdiff
path: root/spec/helpers/services_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/services_helper_spec.rb')
-rw-r--r--spec/helpers/services_helper_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/helpers/services_helper_spec.rb b/spec/helpers/services_helper_spec.rb
new file mode 100644
index 00000000000..edc14f86a50
--- /dev/null
+++ b/spec/helpers/services_helper_spec.rb
@@ -0,0 +1,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