2014-06-19 20:35:53 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe DestroyProjectFromRepositoryJob do
|
|
|
|
let(:project) { FactoryGirl.build(:project, id: 123) }
|
|
|
|
let(:repository) { FactoryGirl.build(:repository, id: 234) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
stub_symlink_methods
|
|
|
|
end
|
|
|
|
|
|
|
|
subject { DestroyProjectFromRepositoryJob }
|
|
|
|
|
|
|
|
it 'ensures that not raises error' do
|
|
|
|
expect do
|
2014-06-23 20:29:00 +01:00
|
|
|
subject.perform project, repository
|
2014-06-19 20:35:53 +01:00
|
|
|
end.to_not raise_exception
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|