rosa-build/jobs/destroy_project_from_reposi...

20 lines
422 B
Ruby
Raw Normal View History

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
subject.perform project, repository
2014-06-19 20:35:53 +01:00
end.to_not raise_exception
end
end