Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_service_spec.rb « applications « services « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 58ac723ee55083ddf029159c2ec2d6009a501eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require "spec_helper"

RSpec.describe ::Applications::CreateService do
  include TestRequestHelpers

  let(:user) { create(:user) }
  let(:params) { attributes_for(:application) }

  subject { described_class.new(user, params) }

  it { expect { subject.execute(test_request) }.to change { Doorkeeper::Application.count }.by(1) }
end