Commit 9c252a60c195cb348c9776f40ca2c6b1f33723f9

Authored by Dmitriy Zaporozhets
1 parent 15c0e58a

remove tests for unexisting methods

spec/models/project_team_spec.rb
... ... @@ -10,9 +10,6 @@ describe ProjectTeam do
10 10 it { should respond_to(:masters) }
11 11 it { should respond_to(:reporters) }
12 12 it { should respond_to(:guests) }
13   - it { should respond_to(:repository_writers) }
14   - it { should respond_to(:repository_masters) }
15   - it { should respond_to(:repository_readers) }
16 13 end
17 14 end
18 15  
... ...
spec/models/user_spec.rb
... ... @@ -69,28 +69,10 @@ describe User do
69 69  
70 70 describe "Respond to" do
71 71 it { should respond_to(:is_admin?) }
72   - it { should respond_to(:identifier) }
73 72 it { should respond_to(:name) }
74 73 it { should respond_to(:private_token) }
75 74 end
76 75  
77   - describe '#identifier' do
78   - it "should return valid identifier" do
79   - user = build(:user, email: "test@mail.com")
80   - user.identifier.should == "test_mail_com"
81   - end
82   -
83   - it "should return identifier without + sign" do
84   - user = build(:user, email: "test+foo@mail.com")
85   - user.identifier.should == "test_foo_mail_com"
86   - end
87   -
88   - it "should conform to Gitolite's required identifier pattern" do
89   - user = build(:user, email: "_test@example.com")
90   - user.identifier.should == 'test_example_com'
91   - end
92   - end
93   -
94 76 describe '#generate_password' do
95 77 it "should execute callback when force_random_password specified" do
96 78 user = build(:user, force_random_password: true)
... ...