Merge branch 'master' into 9944-cwl-lockfile-packaging
[arvados.git] / apps / workbench / test / controllers / containers_controller_test.rb
1 require 'test_helper'
2
3 class ContainersControllerTest < ActionController::TestCase
4   test "visit container log" do
5     use_token 'active'
6
7     container = api_fixture('containers')['completed']
8
9     get :show, {id: container['uuid'], tab_pane: 'Log'}, session_for(:active)
10     assert_response :success
11
12     assert_select "a", {:href=>"/collections/#{container['log']}", :text=>"Download the log"}
13     assert_select "a", {:href=>"#{container['log']}/baz"}
14   end
15 end