Skip to content

Commit 01b96d5

Browse files
author
root
committed
Fix tests
1 parent 1b43add commit 01b96d5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: spec/factories/role.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
:view_changesets,
6161
:manage_related_issues,
6262
:manage_project_activities,
63-
:create_gitolite_ssh_key
63+
:create_gitolite_ssh_key,
64+
:commit_access
6465
]
6566
end
6667

Diff for: spec/models/repository_xitolite_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def create_user_with_permissions(project)
127127

128128
context "with all options" do
129129
my_hash = {
130-
ssh: { url: "ssh://#{GIT_USER}@localhost/redmine/project-parent/project-child.git", committer: 'false' },
131-
https: { url: "https://redmine-test-user@localhost/git/project-parent/project-child.git", committer: 'false' },
130+
ssh: { url: "ssh://#{GIT_USER}@localhost/redmine/project-parent/project-child.git", committer: 'true' },
131+
https: { url: "https://redmine-test-user@localhost/git/project-parent/project-child.git", committer: 'true' },
132132
http: { url: "http://redmine-test-user@localhost/git/project-parent/project-child.git", committer: 'false' },
133133
go: { url: "localhost/go/project-parent/project-child", committer: 'false' },
134134
git: { url: "git://localhost/redmine/project-parent/project-child.git", committer: 'false' }
@@ -157,7 +157,7 @@ def create_user_with_permissions(project)
157157
end
158158

159159
context "with ssh" do
160-
my_hash = { ssh: { url: "ssh://#{GIT_USER}@localhost/redmine/project-parent/project-child.git", committer: 'false' } }
160+
my_hash = { ssh: { url: "ssh://#{GIT_USER}@localhost/redmine/project-parent/project-child.git", committer: 'true' } }
161161

162162
it "should return a Hash of Git url" do
163163
@user = create_user_with_permissions(@project_child)

0 commit comments

Comments
 (0)