diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-06-08 23:36:09 +0200 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-06-08 23:36:09 +0200 |
commit | a705d194facc24be0e265f95ed6d03d533547d7a (patch) | |
tree | de33899ca0e223530bf13ced704d8810e7593e35 /spec | |
parent | 7a89cef601dde68d5964f68bb6fe2e94d72fcf55 (diff) | |
download | gitlab-ce-a705d194facc24be0e265f95ed6d03d533547d7a.tar.gz |
Fixed the project team specs
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_team_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/models/project_team_spec.rb b/spec/models/project_team_spec.rb index 1a7e3cd94b4..1cc37719e7a 100644 --- a/spec/models/project_team_spec.rb +++ b/spec/models/project_team_spec.rb @@ -20,17 +20,17 @@ describe ProjectTeam do end describe 'members collection' do - it { team.masters.should include(master) } - it { team.masters.should include(guest) } - it { team.masters.should_not include(reporter) } - it { team.masters.should_not include(nonmember) } + it { project.team.masters.should include(master) } + it { project.team.masters.should include(guest) } + it { project.team.masters.should_not include(reporter) } + it { project.team.masters.should_not include(nonmember) } end describe 'access methods' do - it { team.master?(master).should be_true } - it { team.master?(guest).should be_true } - it { team.master?(reporter).should be_false } - it { team.master?(nonmember).should be_false } + it { project.team.master?(master).should be_true } + it { project.team.master?(guest).should be_true } + it { project.team.master?(reporter).should be_false } + it { project.team.master?(nonmember).should be_false } end end |