gitlab-org--gitlab-foss/spec/services/applications/create_service_spec.rb

15 lines
359 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "spec_helper"
2017-10-24 02:38:06 -04:00
describe ::Applications::CreateService do
include TestRequestHelpers
2017-10-24 02:38:06 -04:00
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) }
2017-10-24 02:38:06 -04:00
end