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
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 01:35:11 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 01:35:11 +0400
commitcac7723451e575ce39a6930990178450a2a972f0 (patch)
tree32b258ab1929ac710665b19a7f8b62addad83538 /spec
parent1b25a8f4374363d546d4a58f47c6fe00c3b3af07 (diff)
Get rid of roles
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/issue_commonality_spec.rb (renamed from spec/roles/issue_commonality_spec.rb)0
-rw-r--r--spec/lib/votes_spec.rb (renamed from spec/roles/votes_spec.rb)0
-rw-r--r--spec/models/project_repository_spec.rb (renamed from spec/roles/repository_spec.rb)0
-rw-r--r--spec/models/user_spec.rb10
-rw-r--r--spec/roles/account_role_spec.rb13
5 files changed, 10 insertions, 13 deletions
diff --git a/spec/roles/issue_commonality_spec.rb b/spec/lib/issue_commonality_spec.rb
index 11f278dea10..11f278dea10 100644
--- a/spec/roles/issue_commonality_spec.rb
+++ b/spec/lib/issue_commonality_spec.rb
diff --git a/spec/roles/votes_spec.rb b/spec/lib/votes_spec.rb
index 98666022a8f..98666022a8f 100644
--- a/spec/roles/votes_spec.rb
+++ b/spec/lib/votes_spec.rb
diff --git a/spec/roles/repository_spec.rb b/spec/models/project_repository_spec.rb
index e1d01cbfeaf..e1d01cbfeaf 100644
--- a/spec/roles/repository_spec.rb
+++ b/spec/models/project_repository_spec.rb
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index eb2717e38f3..5f6244ec5dd 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -185,4 +185,14 @@ describe User do
it { User.not_in_project(@project).should == [@user, @project.owner] }
end
+
+ describe 'normal user' do
+ let(:user) { create(:user, name: 'John Smith') }
+
+ it { user.is_admin?.should be_false }
+ it { user.require_ssh_key?.should be_true }
+ it { user.can_create_group?.should be_false }
+ it { user.can_create_project?.should be_true }
+ it { user.first_name.should == 'John' }
+ end
end
diff --git a/spec/roles/account_role_spec.rb b/spec/roles/account_role_spec.rb
deleted file mode 100644
index f7a128d0978..00000000000
--- a/spec/roles/account_role_spec.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-require 'spec_helper'
-
-describe User, "Account" do
- describe 'normal user' do
- let(:user) { create(:user, name: 'John Smith') }
-
- it { user.is_admin?.should be_false }
- it { user.require_ssh_key?.should be_true }
- it { user.can_create_group?.should be_false }
- it { user.can_create_project?.should be_true }
- it { user.first_name.should == 'John' }
- end
-end