debian-mirror-gitlab/spec/services/users/dismiss_callout_service_spec.rb
2022-01-26 12:08:38 +05:30

20 lines
498 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Users::DismissCalloutService do
describe '#execute' do
let_it_be(:user) { create(:user) }
let(:params) { { feature_name: feature_name } }
let(:feature_name) { Users::Callout.feature_names.each_key.first }
subject(:execute) do
described_class.new(
container: nil, current_user: user, params: params
).execute
end
it_behaves_like 'dismissing user callout', Users::Callout
end
end