| ... | @@ -4334,6 +4334,14 @@ describe Project do |
... | @@ -4334,6 +4334,14 @@ describe Project do |
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
describe '#to_ability_name' do
|
|
|
|
it 'returns project' do
|
|
|
|
project = build(:project_empty_repo)
|
|
|
|
|
|
|
|
expect(project.to_ability_name).to eq('project')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
describe '#execute_hooks' do
|
|
describe '#execute_hooks' do
|
|
|
let(:data) { { ref: 'refs/heads/master', data: 'data' } }
|
|
let(:data) { { ref: 'refs/heads/master', data: 'data' } }
|
|
|
it 'executes active projects hooks with the specified scope' do
|
|
it 'executes active projects hooks with the specified scope' do
|
| ... | |
... | |
| ... | | ... | |