Commit a705d194facc24be0e265f95ed6d03d533547d7a
1 parent
7a89cef6
Exists in
spb-stable
and in
2 other branches
Fixed the project team specs
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
spec/models/project_team_spec.rb
| ... | ... | @@ -20,17 +20,17 @@ describe ProjectTeam do |
| 20 | 20 | end |
| 21 | 21 | |
| 22 | 22 | describe 'members collection' do |
| 23 | - it { team.masters.should include(master) } | |
| 24 | - it { team.masters.should include(guest) } | |
| 25 | - it { team.masters.should_not include(reporter) } | |
| 26 | - it { team.masters.should_not include(nonmember) } | |
| 23 | + it { project.team.masters.should include(master) } | |
| 24 | + it { project.team.masters.should include(guest) } | |
| 25 | + it { project.team.masters.should_not include(reporter) } | |
| 26 | + it { project.team.masters.should_not include(nonmember) } | |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | 29 | describe 'access methods' do |
| 30 | - it { team.master?(master).should be_true } | |
| 31 | - it { team.master?(guest).should be_true } | |
| 32 | - it { team.master?(reporter).should be_false } | |
| 33 | - it { team.master?(nonmember).should be_false } | |
| 30 | + it { project.team.master?(master).should be_true } | |
| 31 | + it { project.team.master?(guest).should be_true } | |
| 32 | + it { project.team.master?(reporter).should be_false } | |
| 33 | + it { project.team.master?(nonmember).should be_false } | |
| 34 | 34 | end |
| 35 | 35 | end |
| 36 | 36 | ... | ... |