diff options
author | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2014-10-09 18:56:35 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2014-10-09 18:56:35 +0400 |
commit | 6303d003c699082ef7c5f83b7b805e95a62b7886 (patch) | |
tree | e8a886d251776f401f639eee5b93d2c565ea1732 /spec/models | |
parent | 2bfc2f805b017d6dd22b7b39848cc17e03e35da0 (diff) | |
parent | 47f539f5a6a930b2cfd4f9834b4d1bd5e1c180cb (diff) |
Merge branch 't1254-snippets-refactoring' into 'master'
Snippets need to be either public/internal/private
See merge request !1162
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_team_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/project_team_spec.rb b/spec/models/project_team_spec.rb index 34c1a686c96..bbf50b654f4 100644 --- a/spec/models/project_team_spec.rb +++ b/spec/models/project_team_spec.rb @@ -27,6 +27,8 @@ describe ProjectTeam do it { project.team.master?(guest).should be_false } it { project.team.master?(reporter).should be_false } it { project.team.master?(nonmember).should be_false } + it { project.team.member?(nonmember).should be_false } + it { project.team.member?(guest).should be_true } end end @@ -60,6 +62,8 @@ describe ProjectTeam do it { project.team.master?(guest).should be_true } it { project.team.master?(reporter).should be_false } it { project.team.master?(nonmember).should be_false } + it { project.team.member?(nonmember).should be_false } + it { project.team.member?(guest).should be_true } end end end |