13 lines
318 B
Ruby
13 lines
318 B
Ruby
![]() |
require 'spec_helper'
|
||
|
|
||
|
describe ::Applications::CreateService do
|
||
|
let(:user) { create(:user) }
|
||
|
let(:params) { attributes_for(:application) }
|
||
|
|
||
|
subject { described_class.new(user, params) }
|
||
|
|
||
|
it 'creates an application' do
|
||
|
expect { subject.execute }.to change { Doorkeeper::Application.count }.by(1)
|
||
|
end
|
||
|
end
|