summaryrefslogtreecommitdiff
path: root/spec/services/applications/create_service_spec.rb
blob: 0bd96a605c02a9e03d61447b77a01e73b184f98d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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