diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 11:36:50 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 11:36:50 +0300 |
commit | 77c64a9b361a35cfdb7d93c92c5ecc94a8d1aa08 (patch) | |
tree | 1d53e1f716b009410d1f313d6629b8375af6475e /spec/models/project_security_spec.rb | |
parent | 38ed0deaac78f74cf983caf2f607956c1b2dcf83 (diff) | |
download | gitlab-ce-77c64a9b361a35cfdb7d93c92c5ecc94a8d1aa08.tar.gz |
Replace project_access attribute with access_level in specs and API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/models/project_security_spec.rb')
-rw-r--r-- | spec/models/project_security_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/models/project_security_spec.rb b/spec/models/project_security_spec.rb index 564edaf8c1b..5c8d1e7438b 100644 --- a/spec/models/project_security_spec.rb +++ b/spec/models/project_security_spec.rb @@ -30,7 +30,7 @@ describe Project do describe "Guest Rules" do before do - @p1.project_members.create(project: @p1, user: @u2, project_access: ProjectMember::GUEST) + @p1.project_members.create(project: @p1, user: @u2, access_level: ProjectMember::GUEST) end it "should allow for project user any guest actions" do @@ -42,7 +42,7 @@ describe Project do describe "Report Rules" do before do - @p1.project_members.create(project: @p1, user: @u2, project_access: ProjectMember::REPORTER) + @p1.project_members.create(project: @p1, user: @u2, access_level: ProjectMember::REPORTER) end it "should allow for project user any report actions" do @@ -54,8 +54,8 @@ describe Project do describe "Developer Rules" do before do - @p1.project_members.create(project: @p1, user: @u2, project_access: ProjectMember::REPORTER) - @p1.project_members.create(project: @p1, user: @u3, project_access: ProjectMember::DEVELOPER) + @p1.project_members.create(project: @p1, user: @u2, access_level: ProjectMember::REPORTER) + @p1.project_members.create(project: @p1, user: @u3, access_level: ProjectMember::DEVELOPER) end it "should deny for developer master-specific actions" do @@ -73,8 +73,8 @@ describe Project do describe "Master Rules" do before do - @p1.project_members.create(project: @p1, user: @u2, project_access: ProjectMember::DEVELOPER) - @p1.project_members.create(project: @p1, user: @u3, project_access: ProjectMember::MASTER) + @p1.project_members.create(project: @p1, user: @u2, access_level: ProjectMember::DEVELOPER) + @p1.project_members.create(project: @p1, user: @u3, access_level: ProjectMember::MASTER) end it "should deny for developer master-specific actions" do @@ -92,8 +92,8 @@ describe Project do describe "Admin Rules" do before do - @p1.project_members.create(project: @p1, user: @u2, project_access: ProjectMember::DEVELOPER) - @p1.project_members.create(project: @p1, user: @u3, project_access: ProjectMember::MASTER) + @p1.project_members.create(project: @p1, user: @u2, access_level: ProjectMember::DEVELOPER) + @p1.project_members.create(project: @p1, user: @u3, access_level: ProjectMember::MASTER) end it "should deny for masters admin-specific actions" do |