From 79ff7a66fce8d2cf0ddd4f25590bb1378997dfc8 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 22 Aug 2018 17:58:53 +0200 Subject: [PATCH] Fixed broken test: Check of wrong result order. Default is newest first but test checks oldest first. --- test/controllers/tickets_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers/tickets_controller_test.rb b/test/controllers/tickets_controller_test.rb index 637969447..b24724ba8 100644 --- a/test/controllers/tickets_controller_test.rb +++ b/test/controllers/tickets_controller_test.rb @@ -2265,7 +2265,7 @@ AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO assert_response(200) result = JSON.parse(@response.body) assert_equal(Hash, result.class) - assert_equal([ticket1.id, ticket2.id], result['tickets']) + assert_equal([ticket2.id, ticket1.id], result['tickets']) credentials = ActionController::HttpAuthentication::Basic.encode_credentials('tickets-admin', 'adminpw') get "/api/v1/tickets/search?query=#{CGI.escape(title)}&limit=40", params: { sort_by: 'created_at', order_by: 'asc' }, headers: @headers.merge('Authorization' => credentials)