summaryrefslogtreecommitdiff
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb18
1 files changed, 0 insertions, 18 deletions
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)