Skip to content

Commit

Permalink
Remove LDAP save test
Browse files Browse the repository at this point in the history
This is handled within the LDAP class
  • Loading branch information
jewilmeer committed Oct 16, 2014
1 parent 92c184a commit fad588f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/lib/gitlab/oauth/user_spec.rb
Expand Up @@ -29,16 +29,16 @@
end

describe :save do
context "LDAP" do
let(:provider) { 'ldap' }
it "creates a user from LDAP" do
oauth_user.save
let(:provider) { 'twitter' }

expect(gl_user).to be_valid
expect(gl_user.extern_uid).to eql uid
expect(gl_user.provider).to eql 'ldap'
end
it "creates a user from Omniauth" do
oauth_user.save

expect(gl_user).to be_valid
expect(gl_user.extern_uid).to eql uid
expect(gl_user.provider).to eql 'twitter'
end
end

context "twitter" do
let(:provider) { 'twitter' }
Expand Down

0 comments on commit fad588f

Please sign in to comment.