Añade el plugin Redmine Git Hosting 5.0.0

This commit is contained in:
Manuel Cillero 2021-03-20 13:29:16 +01:00
parent cfa0d58b18
commit a3bddad233
458 changed files with 30396 additions and 1 deletions

View file

@ -0,0 +1,15 @@
require File.expand_path('../spec_helper', __dir__)
describe User do
let(:user) { build(:user) }
it { is_expected.to have_many(:protected_branches_members).dependent(:destroy) }
it { is_expected.to have_many(:protected_branches).through(:protected_branches_members) }
describe '#gitolite_identifier' do
it 'return the gitolite_identifier' do
user = build(:user, login: 'adam.30', id: 12)
expect(user.gitolite_identifier).to eq 'redmine_adam_30_12'
end
end
end