From b28d1eec92fb7d1ec05d37ae13df1d4049d57932 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 25 May 2016 14:22:00 +0200 Subject: run all tests by default --- README.md | 4 ++-- test/test_helper.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 21c5581..50460c4 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,6 @@ To run the test suite, run: rake -The tests that actually make real network calls are disabled by default. To run these tests to, do this: +The tests that actually make real network calls are enabled by default. To only run local, do this: - REAL_NET=true rake + ONLY_LOCAL=true rake diff --git a/test/test_helper.rb b/test/test_helper.rb index 842f05f..c9d8fd4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -28,7 +28,7 @@ class Minitest::Test end def real_network - if ENV['REAL_NET'] == 'true' + unless ENV['ONLY_LOCAL'] == 'true' WebMock.allow_net_connect! yield WebMock.disable_net_connect! -- cgit v1.2.3