Añade el plugin Redmine Git Hosting 5.0.0
This commit is contained in:
parent
cfa0d58b18
commit
a3bddad233
458 changed files with 30396 additions and 1 deletions
15
plugins/redmine_git_hosting/spec/models/user_spec.rb
Normal file
15
plugins/redmine_git_hosting/spec/models/user_spec.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue