env_test_helpers 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +4 -9
- data/env_test_helpers.gemspec +3 -6
- data/lib/env_test_helpers.rb +2 -2
- data/lib/env_test_helpers/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 034f721bd199f2d375d369fa73557f16fbb49d16
|
4
|
+
data.tar.gz: bc714a9f887322d4ffc7a5f69830d890a2dfc894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77da4584e8cca23470f5565155b95c4756d29ee1a66ff7a4af0913ff184e51d98f62e724a36d48d13f544636074e9dbc214c28df2992a4831fbb69511a858138
|
7
|
+
data.tar.gz: 1b1e2c9d17c36acdf5a75841b78b24831cfd5d82789787c8a506f54a785317fc6a0a7c6e596c6389dd85663859f321b120de245cb2234ecaa14bcfdc956eb623
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# EnvTestHelpers
|
2
2
|
|
3
|
-
|
3
|
+
EnvTestHelpers is a collection of helpers to work with environment variables in tests.
|
4
|
+
Right now is only working with Rspec.
|
4
5
|
|
5
6
|
Use case:
|
6
7
|
- I have configurations set in ignored files, most of this variables are Api keys or passwords.
|
@@ -25,17 +26,11 @@ Or install it yourself as:
|
|
25
26
|
|
26
27
|
$ gem install env_test_helpers
|
27
28
|
|
28
|
-
##
|
29
|
+
## RSpec
|
29
30
|
All done. _The module gets included in the rspec configure block._
|
30
31
|
|
31
32
|
## Else
|
32
|
-
|
33
|
-
require 'env_test_helpers'
|
34
|
-
```
|
35
|
-
or
|
36
|
-
```ruby
|
37
|
-
include EnvTestHelpers
|
38
|
-
```
|
33
|
+
Right now only works with RSpec.
|
39
34
|
|
40
35
|
## Usage
|
41
36
|
|
data/env_test_helpers.gemspec
CHANGED
@@ -9,12 +9,9 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Artur Pañach"]
|
10
10
|
spec.email = ["arturictus@gmail.com"]
|
11
11
|
spec.summary = %q{Helps to handle env vars in tests.}
|
12
|
-
spec.description = %q{
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
Solution:
|
17
|
-
- I mock or set this variables in the test they are required.}
|
12
|
+
spec.description = %q{EnvTestHelpers is a collection of helpers to work
|
13
|
+
with environment variables in tests.
|
14
|
+
Right now is only working with Rspec.}
|
18
15
|
spec.homepage = "https://github.com/arturictus/env_test_helpers"
|
19
16
|
spec.license = "MIT"
|
20
17
|
|
data/lib/env_test_helpers.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: env_test_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artur Pañach
|
@@ -39,12 +39,9 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
description: |-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
Solution:
|
47
|
-
- I mock or set this variables in the test they are required.
|
42
|
+
EnvTestHelpers is a collection of helpers to work
|
43
|
+
with environment variables in tests.
|
44
|
+
Right now is only working with Rspec.
|
48
45
|
email:
|
49
46
|
- arturictus@gmail.com
|
50
47
|
executables: []
|