diff options
author | Jan-Willem van der Meer <mail@jewilmeer.nl> | 2014-09-01 13:02:41 +0200 |
---|---|---|
committer | Jan-Willem van der Meer <mail@jewilmeer.nl> | 2014-09-01 13:02:41 +0200 |
commit | 0ec4abf73c5de8b36c33beba443d998652042ef5 (patch) | |
tree | de95896d5f277c4afa4857e1313a06681fb1c39e /spec | |
parent | 0c34fa3ea0662f94fdc565cfd3f921db40733821 (diff) | |
download | gitlab-ce-0ec4abf73c5de8b36c33beba443d998652042ef5.tar.gz |
Use local vars for tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/oauth/user_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/gitlab/oauth/user_spec.rb b/spec/lib/gitlab/oauth/user_spec.rb index a79ba3b588e..347723f6943 100644 --- a/spec/lib/gitlab/oauth/user_spec.rb +++ b/spec/lib/gitlab/oauth/user_spec.rb @@ -31,8 +31,8 @@ describe Gitlab::OAuth::User do describe :create do it "should create user from LDAP" do - @auth = double(info: info, provider: 'ldap') - user = gl_auth.create(@auth) + auth = double(info: info, provider: 'ldap') + user = gl_auth.create(auth) user.should be_valid user.extern_uid.should == info.uid @@ -40,8 +40,8 @@ describe Gitlab::OAuth::User do end it "should create user from Omniauth" do - @auth = double(info: info, provider: 'twitter') - user = gl_auth.create(@auth) + auth = double(info: info, provider: 'twitter') + user = gl_auth.create(auth) user.should be_valid user.extern_uid.should == info.uid @@ -49,8 +49,8 @@ describe Gitlab::OAuth::User do end it "should apply defaults to user" do - @auth = double(info: info, provider: 'ldap') - user = gl_auth.create(@auth) + auth = double(info: info, provider: 'ldap') + user = gl_auth.create(auth) user.should be_valid user.projects_limit.should == Gitlab.config.gitlab.default_projects_limit |