From d4bec6dbcbbfcbd21bc49865ffa07255dfe38a0d Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 4 Jul 2016 11:43:12 +0300 Subject: [PATCH] added `dogma` to `:test` env --- mix.exs | 2 +- test/fixture/cassettes/httpoison_get.json | 61 ----------------------- 2 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 test/fixture/cassettes/httpoison_get.json diff --git a/mix.exs b/mix.exs index 1469651..06504dd 100755 --- a/mix.exs +++ b/mix.exs @@ -49,7 +49,7 @@ defmodule UeberauthVK.Mixfile do {:earmark, ">= 0.0.0", only: :dev}, # Lint: - {:dogma, "~> 0.1", only: :dev}, + {:dogma, "~> 0.1", only: [:dev, :test]}, ] end diff --git a/test/fixture/cassettes/httpoison_get.json b/test/fixture/cassettes/httpoison_get.json deleted file mode 100644 index b35a4b2..0000000 --- a/test/fixture/cassettes/httpoison_get.json +++ /dev/null @@ -1,61 +0,0 @@ -[ - { - "request": { - "body": "client_id=appid&client_secret=secret&code=code_abc&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fwww.example.com%2Fauth%2Fvk%2Fcallback", - "headers": { - "Accept": "application/x-www-form-urlencoded", - "Content-Type": "application/x-www-form-urlencoded" - }, - "method": "post", - "options": [], - "request_body": "", - "url": "https://oauth.vk.com/access_token" - }, - "response": { - "body": "{\"access_token\": \"x\", \"user_ids\": 210700286, \"fields\": \"photo_50,city,verified\"}", - "headers": { - "Server": "Apache", - "Date": "Sun, 03 Jul 2016 19:28:36 GMT", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "69", - "Connection": "keep-alive", - "X-Powered-By": "PHP/3.2508", - "Set-Cookie": "remixlang=0; expires=Mon, 26 Jun 2017 04:09:35 GMT; path=/; domain=.vk.com", - "Pragma": "no-cache", - "Cache-control": "no-store" - }, - "status_code": 200, - "type": "ok" - } - }, - { - "request": { - "body": "", - "headers": { - "Accept": "application/json", - "Authorization": "Bearer 2.xxx" - }, - "method": "get", - "options": [], - "request_body": "", - "url": "https://api.vk.com/method/users.get?access_token=x&fields=photo_50,city,verified&user_ids=210700286" - }, - "response": { - "body": "{\"response\":[{\"uid\":210700286,\"first_name\":\"Lindsey\",\"last_name\":\"Stirling\",\"city\":5331,\"photo_50\":\"http:\\\/\\\/cs631329.vk.me\\\/v631329286\\\/23f6e\\\/4-funfNRMwg.jpg\",\"verified\":1}]}", - "headers": { - "Server": "nginx/1.6.1", - "Date": "Sat, 09 Apr 2016 04:05:30 GMT", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Pragma": "No-cache", - "Cache-Control": "no-cache", - "Expires": "Thu, 01 Jan 1970 00:00:00 GMT", - "Api-Server-IP": "10.75.25.86", - "SINA-LB": "aGEuMTY5LmcxLmh5ZHMubGIuc2luYW5vZGUuY29t", - "SINA-TS": "NGI2ZWMzNjggMCAzNiAzNiA1IDYwCg==" - }, - "status_code": 200, - "type": "ok" - } - } -]