ex_aequo_rspex 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/lib/ex_aequo/rspex/macros/let_macros.rb +10 -2
- data/lib/ex_aequo/rspex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 335fe7935ff1b443a9257a9b7ceb586c6a50e592bde4865322340e0782446500
|
|
4
|
+
data.tar.gz: 29ae913c08b5c74726b2c858b4dc04ab469d9c3c0a36890ffbe7e681e565814b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e701c3cea1c37c56f89bfd01af6e880ea06920663e87eff7587241ac8224b2b268223da2da07a45b1ccb731f0f6b1192ba8c0eb82eaa8c303e11f546f277260
|
|
7
|
+
data.tar.gz: 9354fe60aeeb1f203d5dcc62e34822fda233467be6a7695337c637428c220be2b57d501a663dfad911a9a3f835977e8f7565bef4cc8e176a5dbc8ce25ce75669
|
data/README.md
CHANGED
|
@@ -9,4 +9,14 @@ In `spec_helper.rb`
|
|
|
9
9
|
```ruby
|
|
10
10
|
require 'ex_aequo/rspex'
|
|
11
11
|
```
|
|
12
|
+
|
|
13
|
+
## LICENSE
|
|
14
|
+
|
|
15
|
+
Copyright 2026 Robert Dober robert.dober@gmail.com
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
AGPL-3.0-or-later c.f. [LICENSE](LICENSE)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
12
22
|
<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
|
|
@@ -6,14 +6,22 @@ module ExAequo
|
|
|
6
6
|
module Macros
|
|
7
7
|
module LetMacros
|
|
8
8
|
|
|
9
|
-
def let_alphanumeric_random(
|
|
10
|
-
|
|
9
|
+
def let_alphanumeric_random(*names, length: 16)
|
|
10
|
+
for name in names do
|
|
11
|
+
let(name) { SecureRandom.alphanumeric(length) }
|
|
12
|
+
end
|
|
11
13
|
end
|
|
12
14
|
|
|
13
15
|
def let_double(name, type)
|
|
14
16
|
let(name) { double(type) }
|
|
15
17
|
end
|
|
16
18
|
|
|
19
|
+
def let_doubles(*names, for_type:)
|
|
20
|
+
for name in names do
|
|
21
|
+
let_double(name, for_type)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
17
25
|
end
|
|
18
26
|
end
|
|
19
27
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ex_aequo_rspex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Dober
|
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: '0'
|
|
58
58
|
requirements: []
|
|
59
|
-
rubygems_version:
|
|
59
|
+
rubygems_version: 4.0.3
|
|
60
60
|
specification_version: 4
|
|
61
61
|
summary: RSpec macros and helpers
|
|
62
62
|
test_files: []
|