From 91360d2d631f265ab7873971be07f96fd25c4560 Mon Sep 17 00:00:00 2001 From: Szabo Bogdan Date: Thu, 2 Apr 2020 17:11:07 +0200 Subject: [PATCH] add optional library fluent-asserts-vibe --- api/vibe-json.md | 2 +- api/vibe-requests.md | 2 +- dub.json | 4 ++++ source/fluent/asserts.d | 5 +++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/api/vibe-json.md b/api/vibe-json.md index 3521f63..b885c3d 100644 --- a/api/vibe-json.md +++ b/api/vibe-json.md @@ -7,7 +7,7 @@ Theese are some utilities that helps you to write easier asserts for the [Json]( ## Setup 1. Include the vibe assert package package: `fluent-asserts-vibe` -2. Import the module: `import fluent.asserts.vibe.json` or `import fluent.asserts.vibe` +2. Import the module: `import fluentasserts.vibe.json` or `import fluent.asserts` ## Summary diff --git a/api/vibe-requests.md b/api/vibe-requests.md index d591bef..8ea4695 100644 --- a/api/vibe-requests.md +++ b/api/vibe-requests.md @@ -7,7 +7,7 @@ Mocking HTTP requests are usefull for api tests. This module allows you to mock ## Setup 1. Include the vibe assert package package: `fluent-asserts-vibe` -2. Import the module: `import fluent.asserts.vibe.request` or `import fluent.asserts.vibe` +2. Import the module: `import fluentasserts.vibe.request` or `import fluent.asserts` ## Summary diff --git a/dub.json b/dub.json index 3a23939..2201291 100644 --- a/dub.json +++ b/dub.json @@ -13,6 +13,10 @@ "unit-threaded": { "version": "*", "optional": true + }, + "fluent-asserts-vibe": { + "version": "*", + "optional": true } }, "configurations": [ diff --git a/source/fluent/asserts.d b/source/fluent/asserts.d index a24668e..9802cc1 100644 --- a/source/fluent/asserts.d +++ b/source/fluent/asserts.d @@ -1,3 +1,8 @@ module fluent.asserts; public import fluentasserts.core.base; + +version(Have_fluent_asserts_vibe) { + public import fluentasserts.vibe.json; + public import fluentasserts.vibe.request; +} \ No newline at end of file