debian-mirror-gitlab/spec/helpers/services_helper_spec.rb
2020-01-01 13:55:28 +05:30

16 lines
475 B
Ruby

# 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