X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b81e83807ec568686a4dbb30d31a32cba5996e5f..948c4e583b89e28730f8a0d2ae3f94e459351b30:/services/api/test/integration/reader_tokens_test.rb diff --git a/services/api/test/integration/reader_tokens_test.rb b/services/api/test/integration/reader_tokens_test.rb index 60b06a9ec8..a60be093a3 100644 --- a/services/api/test/integration/reader_tokens_test.rb +++ b/services/api/test/integration/reader_tokens_test.rb @@ -51,9 +51,9 @@ class ReaderTokensTest < ActionDispatch::IntegrationTest [nil, :active_noscope].each do |main_auth| [:spectator, :spectator_specimens].each do |read_auth| [:to_a, :to_json].each do |formatter| - test "#{main_auth.inspect} auth with #{formatter} reader token #{read_auth} can't read" do + test "#{main_auth.inspect} auth with #{formatter} reader token #{read_auth} can#{"'t" if main_auth} read" do get_specimens(main_auth, read_auth) - assert_response(if main_auth then 403 else 302 end) + assert_response(if main_auth then 403 else 200 end) end test "#{main_auth.inspect} auth with #{formatter} reader token #{read_auth} can't write" do