[ARVADOS] updated: 655469d6a9e711ace01c018b5c7b7b3111ea6deb

git at public.curoverse.com git at public.curoverse.com
Wed Mar 25 11:04:00 EDT 2015


Summary of changes:
 .../test/controllers/application_controller_test.rb        | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

       via  655469d6a9e711ace01c018b5c7b7b3111ea6deb (commit)
      from  4fce5c64b5bc0b106e14533378de6488fd030f98 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 655469d6a9e711ace01c018b5c7b7b3111ea6deb
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Wed Mar 25 11:02:25 2015 -0400

    5556: add test to invoke collection#show with and without include_accept_encoding_header_in_api_requests config parameter.

diff --git a/apps/workbench/test/controllers/application_controller_test.rb b/apps/workbench/test/controllers/application_controller_test.rb
index 4721316..9785243 100644
--- a/apps/workbench/test/controllers/application_controller_test.rb
+++ b/apps/workbench/test/controllers/application_controller_test.rb
@@ -362,4 +362,18 @@ class ApplicationControllerTest < ActionController::TestCase
       end
     end
   end
+
+  [
+    true,
+    false,
+  ].each do |config|
+    test "invoke show with include_accept_encoding_header config #{config}" do
+      Rails.configuration.include_accept_encoding_header_in_api_requests = config
+
+      @controller = CollectionsController.new
+      get(:show, {id: api_fixture('collections')['foo_file']['uuid']}, session_for(:admin))
+
+      assert_equal([['.', 'foo', 3]], assigns(:object).files)
+    end
+  end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list