pull/2978/head
Markus Kahl 10 years ago
parent 312bd47ab8
commit f7b978fe8c
  1. 6
      spec/requests/api/v3/authentication_spec.rb

@ -30,7 +30,7 @@ require 'spec_helper'
describe API::V3, type: :request do
describe 'basic auth' do
let(:user) { FactoryGirl.create :user }
let(:user) { FactoryGirl.create :user }
let(:resource) { "/api/v3/users/#{user.id}" }
Strategies = OpenProject::Authentication::Strategies::Warden
@ -88,7 +88,7 @@ describe API::V3, type: :request do
it_behaves_like 'it is basic auth protected'
describe 'user basic auth' do
let(:api_key) { FactoryGirl.create :api_key }
let(:api_key) { FactoryGirl.create :api_key }
let(:username) { 'apikey' }
let(:password) { api_key.value }
@ -99,7 +99,7 @@ describe API::V3, type: :request do
end
describe 'user basic auth' do
let(:api_key) { FactoryGirl.create :api_key }
let(:api_key) { FactoryGirl.create :api_key }
let(:username) { 'apikey' }
let(:password) { api_key.value }

Loading…
Cancel
Save