Commit 9e78fb5bf79d4d57c3aba5bd30eec7162f534ffe

Authored by Dmitriy Zaporozhets
2 parents 880a86b5 a705d194

Merge pull request #7094 from jvanbaarsen/project-team-spec-fix

Fixed the project team specs
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  
... ...