remove tests for unexisting methods
This commit is contained in:
parent
15c0e58a49
commit
9c252a60c1
2 changed files with 0 additions and 21 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue