files_controller_spec.rb revision e8ceec219830407bded84634716d37d45d3a5872
0d3763fcd43f738899afcf8699b0e02b833c8132Tim Reddehaserequire 'spec_helper'
e1d2fd86f76c899ca9cc37b6dc892a1410b53470Tim Reddehase before { get :files, repository_id: repository.to_param }
e1d2fd86f76c899ca9cc37b6dc892a1410b53470Tim Reddehase let(:user){ create(:permission, item: repository).subject }
e1d2fd86f76c899ca9cc37b6dc892a1410b53470Tim Reddehase before { get :new, repository_id: repository.to_param }
e1d2fd86f76c899ca9cc37b6dc892a1410b53470Tim Reddehase before { post :create, repository_id: repository.to_param }
file: Rack::Test::UploadedFile.new(Rails.root.join('test','fixtures','ontologies','owl','pizza.owl'),'image/jpg')