summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-26 11:17:02 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-26 11:17:02 +0200
commit9c252a60c195cb348c9776f40ca2c6b1f33723f9 (patch)
tree4d8f983b5f3303c3e12a266d1c4be8f2971321e7 /spec
parent15c0e58a49d623a0f8747e1d7e74364324eeb79f (diff)
downloadgitlab-ce-9c252a60c195cb348c9776f40ca2c6b1f33723f9.tar.gz
remove tests for unexisting methods
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_team_spec.rb3
-rw-r--r--spec/models/user_spec.rb18
2 files changed, 0 insertions, 21 deletions
diff --git a/spec/models/project_team_spec.rb b/spec/models/project_team_spec.rb
index 7803811f395..3e3543e85e1 100644
--- a/spec/models/project_team_spec.rb
+++ b/spec/models/project_team_spec.rb
@@ -10,9 +10,6 @@ describe ProjectTeam do
it { should respond_to(:masters) }
it { should respond_to(:reporters) }
it { should respond_to(:guests) }
- it { should respond_to(:repository_writers) }
- it { should respond_to(:repository_masters) }
- it { should respond_to(:repository_readers) }
end
end
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 8ab0a0343bb..40047b351da 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -69,28 +69,10 @@ describe User do
describe "Respond to" do
it { should respond_to(:is_admin?) }
- it { should respond_to(:identifier) }
it { should respond_to(:name) }
it { should respond_to(:private_token) }
end
- describe '#identifier' do
- it "should return valid identifier" do
- user = build(:user, email: "test@mail.com")
- user.identifier.should == "test_mail_com"
- end
-
- it "should return identifier without + sign" do
- user = build(:user, email: "test+foo@mail.com")
- user.identifier.should == "test_foo_mail_com"
- end
-
- it "should conform to Gitolite's required identifier pattern" do
- user = build(:user, email: "_test@example.com")
- user.identifier.should == 'test_example_com'
- end
- end
-
describe '#generate_password' do
it "should execute callback when force_random_password specified" do
user = build(:user, force_random_password: true)