From a9f115cfa5b787f531d77a670e75568b222bdc40 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 27 Mar 2013 16:46:02 +0100 Subject: [PATCH] Rewrite an insert test to not affect a subsequent select test Closes #84 --- test/acceptance/app.auth.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/acceptance/app.auth.test.js b/test/acceptance/app.auth.test.js index 49dbc627..fe255c22 100644 --- a/test/acceptance/app.auth.test.js +++ b/test/acceptance/app.auth.test.js @@ -11,7 +11,7 @@ suite('app.auth', function() { test('valid api key should allow insert in protected tables', function(done){ assert.response(app, { // view prepare_db.sh to see where to set api_key - url: "/api/v1/sql?api_key=1234&q=INSERT%20INTO%20private_table%20(name)%20VALUES%20('test')", + url: "/api/v1/sql?api_key=1234&q=INSERT%20INTO%20private_table%20(name)%20VALUES%20('app_auth_test1')", headers: {host: 'vizzuality.localhost.lan:8080' }, method: 'GET'