repositories_controller_spec.rb revision 7ca38d75d045fade73b81bff6fdf34f4755d75fb
3f4d0b5eb524cbdf9341960fec2155f8be471425Julian Kornbergerrequire 'spec_helper'
3f4d0b5eb524cbdf9341960fec2155f8be471425Julian Kornberger let(:user){ create(:permission, role: 'owner', item: repository).subject }
3fd79b62dab08e18fedc1c3a5ea3fdaa79b9dd50henning mueller before { delete :destroy, id: repository.to_param }
3fd79b62dab08e18fedc1c3a5ea3fdaa79b9dd50henning mueller it{ response.should redirect_to Repository }
aafe992249de15ae9a789342b4e33d2ab1a28923henning mueller importing = create :ontology, repository: importing_repository
1437511287777e1ad0b2cfecd0c8022382d09b41Till Mossakowski create :import_mapping, target: importing, source: ontology
3fd79b62dab08e18fedc1c3a5ea3fdaa79b9dd50henning mueller expect(flash[:error]).to match(/is imported/)
3fd79b62dab08e18fedc1c3a5ea3fdaa79b9dd50henning mueller it{ response.should redirect_to repository }
e4d0b8b9a363ea0f8cd85c452a2979a89a0506dfSascha Graef it { should render_template 'repositories/_repository' }
e4d0b8b9a363ea0f8cd85c452a2979a89a0506dfSascha Graef context 'requesting standard representation' do
b93ea904c4d59806150a385e50734d87d63c79c7Sascha Graef context 'creating a clone', :process_jobs_synchronously do
before do
before do
after do
before do