debian-mirror-gitlab/spec/services/applications/create_service_spec.rb
2020-08-09 17:41:57 +05:30

14 lines
365 B
Ruby

# 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