Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-11-02 10:49:36 +0300
committerJames Lopez <james@jameslopez.es>2017-11-02 10:49:36 +0300
commit37eb00ce5b684ff2bbbc83746a298a71e275c84d (patch)
tree9897f98310e19324b7056513b6bcfd7c702b3b1c /spec/services/applications
parent232bdd47d9af004b09cfde68d866d3e694572774 (diff)
fix specs
Diffstat (limited to 'spec/services/applications')
-rw-r--r--spec/services/applications/create_service_spec.rb3
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