files_controller_spec.rb revision afd1d888784385307c9c0544597a513c2008d342
require 'spec_helper'
describe 'iri ontology route' do
let!(:dist_ontology){ create :heterogeneous_ontology }
before do
@repository_file = 'repository_file'
end
after do
end
it { should respond_with :redirect }
end
end
before do
@repository_file = 'repository_file'
end
after do
end
it { should respond_with :success }
it { should render_template :files }
end
before { get :new, repository_id: repository.to_param }
it { should respond_with :success }
end
it { should respond_with :success }
end
before {
temp_file: Rack::Test::UploadedFile.new(Rails.root.join('test','fixtures','ontologies','owl','pizza.owl'),'image/jpg')
}
}
it { should respond_with :redirect }
end
end
before do
end
before do
content: "changed"
end
it { should respond_with :found }
end
end
end
before do
content: "changed"
end
it { should respond_with :success }
end
end
end
end
before do
content: "changed"
end
it { should respond_with :found }
end
end
end
pending "this should be another controller action"
end
end
end
end
end
end