diff options
author | James Lopez <james@jameslopez.es> | 2017-11-02 08:49:36 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-11-02 08:49:36 +0100 |
commit | 37eb00ce5b684ff2bbbc83746a298a71e275c84d (patch) | |
tree | 9897f98310e19324b7056513b6bcfd7c702b3b1c /spec/services | |
parent | 232bdd47d9af004b09cfde68d866d3e694572774 (diff) | |
download | gitlab-ce-37eb00ce5b684ff2bbbc83746a298a71e275c84d.tar.gz |
fix specs
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/applications/create_service_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/applications/create_service_spec.rb b/spec/services/applications/create_service_spec.rb index 0bd96a605c0..47a2a9d6403 100644 --- a/spec/services/applications/create_service_spec.rb +++ b/spec/services/applications/create_service_spec.rb @@ -3,10 +3,11 @@ require 'spec_helper' describe ::Applications::CreateService do let(:user) { create(:user) } let(:params) { attributes_for(:application) } + let(:request) { ActionController::TestRequest.new(remote_ip: '127.0.0.1') } subject { described_class.new(user, params) } it 'creates an application' do - expect { subject.execute }.to change { Doorkeeper::Application.count }.by(1) + expect { subject.execute(request) }.to change { Doorkeeper::Application.count }.by(1) end end |