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

15 lines
365 B
Ruby
Raw Normal View History

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