2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
require "spec_helper"
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe ::Applications::CreateService do
|
2018-12-13 13:39:08 +05:30
|
|
|
include TestRequestHelpers
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
let(:user) { create(:user) }
|
|
|
|
let(:params) { attributes_for(:application) }
|
|
|
|
|
|
|
|
subject { described_class.new(user, params) }
|
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
it { expect { subject.execute(test_request) }.to change { Doorkeeper::Application.count }.by(1) }
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|