summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/saml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-02-23 18:55:33 +0000
committerRobert Speicher <robert@gitlab.com>2017-02-23 18:55:33 +0000
commit509ff2ab170802e23646282f1d146a6383b53a66 (patch)
treecb86803133319b5144349c9c409c4bf2cf9c90dc /spec/lib/gitlab/saml
parentd2aeffce5dad2c265787cba7c967b515b00639e2 (diff)
parent8b2ea599e3047b24a788dec843ea1d6d36e76d98 (diff)
downloadgitlab-ce-509ff2ab170802e23646282f1d146a6383b53a66.tar.gz
Merge branch 'enable-rspec-be_eql-cop' into 'master'
Enable the RSpec/BeEql cop See merge request !9476
Diffstat (limited to 'spec/lib/gitlab/saml')
-rw-r--r--spec/lib/gitlab/saml/user_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/saml/user_spec.rb b/spec/lib/gitlab/saml/user_spec.rb
index 6e075edc5ed..4f6ef3c10fc 100644
--- a/spec/lib/gitlab/saml/user_spec.rb
+++ b/spec/lib/gitlab/saml/user_spec.rb
@@ -155,7 +155,7 @@ describe Gitlab::Saml::User, lib: true do
expect(gl_user).to be_valid
expect(gl_user.username).to eql uid
expect(gl_user.email).to eql 'john@mail.com'
- expect(gl_user.identities.length).to eql 2
+ expect(gl_user.identities.length).to be 2
identities_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } }
expect(identities_as_hash).to match_array([{ provider: 'ldapmain', extern_uid: 'uid=user1,ou=People,dc=example' },
{ provider: 'saml', extern_uid: uid }])
@@ -177,7 +177,7 @@ describe Gitlab::Saml::User, lib: true do
expect(gl_user).to be_valid
expect(gl_user.username).to eql 'john'
expect(gl_user.email).to eql 'john@mail.com'
- expect(gl_user.identities.length).to eql 2
+ expect(gl_user.identities.length).to be 2
identities_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } }
expect(identities_as_hash).to match_array([{ provider: 'ldapmain', extern_uid: 'uid=user1,ou=People,dc=example' },
{ provider: 'saml', extern_uid: uid }])
@@ -202,7 +202,7 @@ describe Gitlab::Saml::User, lib: true do
local_gl_user = local_saml_user.gl_user
expect(local_gl_user).to be_valid
- expect(local_gl_user.identities.length).to eql 2
+ expect(local_gl_user.identities.length).to be 2
identities_as_hash = local_gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } }
expect(identities_as_hash).to match_array([{ provider: 'ldapmain', extern_uid: 'uid=user1,ou=People,dc=example' },
{ provider: 'saml', extern_uid: 'uid=user1,ou=People,dc=example' }])