Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-09 13:26:32 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-09 13:26:32 +0400
commit9e78fb5bf79d4d57c3aba5bd30eec7162f534ffe (patch)
tree044c29c5eebf5878599d53c5789f6a0f711e7ffd /spec
parent880a86b577f12fb5f758b2b8e8d8e70b6670cf3c (diff)
parenta705d194facc24be0e265f95ed6d03d533547d7a (diff)
Merge pull request #7094 from jvanbaarsen/project-team-spec-fix
Fixed the project team specs
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_team_spec.rb16
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