Shell: Add file system browser to retrieve arbitrary files

This commit is contained in:
Sebastian Serth
2022-10-04 15:21:06 +02:00
committed by Sebastian Serth
parent 60078701f5
commit 58548555a5
13 changed files with 240 additions and 38 deletions

View File

@ -161,7 +161,7 @@ describe FileTree do
end
context 'with leaf nodes' do
let(:node) { root.add(Tree::TreeNode.new('')) }
let(:node) { root.add(Tree::TreeNode.new('', CodeOcean::File.new)) }
it 'is a file icon' do
expect(file_tree).to receive(:file_icon)

View File

@ -12,6 +12,6 @@ describe 'execution_environments/shell.html.slim' do
it 'contains the required data attributes' do
expect(rendered).to have_css('#shell[data-message-timeout]')
expect(rendered).to have_css("#shell[data-url='#{execute_command_execution_environment_path(execution_environment)}']")
expect(rendered).to have_css("#shell[data-id='#{execution_environment.id}']")
end
end