Añade plugin Redmine Git Hosting 4.0.2

This commit is contained in:
Manuel Cillero 2020-12-05 13:57:05 +01:00
parent 472cb1ea76
commit bdd66d941f
494 changed files with 36768 additions and 0 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