projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12737: Fix controller tests
[arvados.git]
/
apps
/
workbench
/
test
/
controllers
/
repositories_controller_test.rb
diff --git
a/apps/workbench/test/controllers/repositories_controller_test.rb
b/apps/workbench/test/controllers/repositories_controller_test.rb
index cb8916bc5810158b30b7101e2371578c274cafac..b81e2384c98db7975349e0ea4a4c387f95223a2a 100644
(file)
--- a/
apps/workbench/test/controllers/repositories_controller_test.rb
+++ b/
apps/workbench/test/controllers/repositories_controller_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
require 'helpers/repository_stub_helper'
require 'helpers/share_object_helper'
require 'test_helper'
require 'helpers/repository_stub_helper'
require 'helpers/share_object_helper'
@@
-59,7
+63,7
@@
class RepositoriesControllerTest < ActionController::TestCase
assert_response :success
panes = css_select('[data-toggle=tab]').each do |pane|
assert_response :success
panes = css_select('[data-toggle=tab]').each do |pane|
- pane_name = pane.attributes['href']
+ pane_name = pane.attributes['href']
.value
assert_includes expected_panes, pane_name
end
end
assert_includes expected_panes, pane_name
end
end
@@
-92,7
+96,7
@@
class RepositoriesControllerTest < ActionController::TestCase
commit: sha1,
}, session_for(user)
assert_response :success
commit: sha1,
}, session_for(user)
assert_response :success
- assert_select 'pre',
h(commit)
+ assert_select 'pre',
commit
end
test "show blob to #{user}" do
end
test "show blob to #{user}" do
@@
-104,7
+108,7
@@
class RepositoriesControllerTest < ActionController::TestCase
path: 'COPYING',
}, session_for(user)
assert_response :success
path: 'COPYING',
}, session_for(user)
assert_response :success
- assert_select 'pre',
h(filedata)
+ assert_select 'pre',
filedata
end
end
end
end