X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/35bee4f8071099b57925a49fc56554ceda900c81..0f9bca457448372de1d15dcd9ed4548c324ff14f:/apps/workbench/test/functional/actions_controller_test.rb diff --git a/apps/workbench/test/functional/actions_controller_test.rb b/apps/workbench/test/functional/actions_controller_test.rb index d152a003a1..0e28b064e1 100644 --- a/apps/workbench/test/functional/actions_controller_test.rb +++ b/apps/workbench/test/functional/actions_controller_test.rb @@ -26,16 +26,12 @@ class ActionsControllerTest < ActionController::TestCase session_for(:active)) assert_response 302 # collection created and redirected to new collection page - new_collection_uuid = response.headers['Location'].split('/')[-1] - - @controller = CollectionsController.new - get :show, { - id: new_collection_uuid - } - assert_response :success + assert response.headers['Location'].include? '/collections/' + new_collection_uuid = response.headers['Location'].split('/')[-1] - collection = assigns(:object) + use_token :active + collection = Collection.select([:uuid, :manifest_text]).where(uuid: new_collection_uuid).first manifest_text = collection['manifest_text'] assert manifest_text.include?('foo'), 'Not found foo in new collection manifest text' assert manifest_text.include?('bar'), 'Not found bar in new collection manifest text'