r_spec 1.0.0.beta7 → 1.0.0.beta8
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 +7 -11
- data/lib/r_spec/dsl.rb +2 -2
- 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: 654594b32d5ef5c97f68de1a5f3e99cc38364de1703f747d841fccba725b878c
|
4
|
+
data.tar.gz: 11038ae3f4f56cf40a7e2d99077ce28e7ee239e36d775dcfe8035954df240e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91f106a5823915d56c59edf1a7da73285fdf05ef38827368cc44c135c2973b03aa4e3fe013a2e423ffd7bfdc2bd3f24ccd208f6f8e11fddeba3e95bfe800d7cb
|
7
|
+
data.tar.gz: e25a4dc18ba5ffb7aabb0bbe42dc9ef6b88756e4fb825fa895683e181a1ac05a61d153da05deb7c5142473704f2174b0a5a4e75dd612ed0481b2402a0c15a350
|
data/README.md
CHANGED
@@ -8,15 +8,14 @@ A minimalist __[RSpec](https://github.com/rspec/rspec) clone__ with all the esse
|
|
8
8
|
|
9
9
|
[](https://badge.fury.io/rb/r_spec)
|
10
10
|
[](https://travis-ci.org/cyril/r_spec.rb)
|
11
|
-
[](https://inch-ci.org/github/cyril/r_spec.rb)
|
12
11
|
[](https://rubydoc.info/gems/r_spec/frames)
|
13
12
|
|
14
|
-
## Project
|
13
|
+
## Project goals
|
15
14
|
|
16
15
|
* Enforce the guidelines and best practices outlined in the community [RSpec style guide](https://rspec.rubystyle.guide/).
|
17
16
|
* Provide most of RSpec's DSL to express expected outcomes of a code example without magic power.
|
18
17
|
|
19
|
-
## Some
|
18
|
+
## Some differences
|
20
19
|
|
21
20
|
* Less features and an implementation with much less code complexity.
|
22
21
|
* Spec files can also be executed directly with the `ruby` executable.
|
@@ -29,10 +28,7 @@ A minimalist __[RSpec](https://github.com/rspec/rspec) clone__ with all the esse
|
|
29
28
|
* [Arbitrary helper methods](https://relishapp.com/rspec/rspec-core/v/3-10/docs/helper-methods/arbitrary-helper-methods) are not exposed to examples.
|
30
29
|
* The `let` method defines a helper method rather than a memoized helper method.
|
31
30
|
* The one-liner `is_expected` syntax also works with block expectations.
|
32
|
-
*
|
33
|
-
* All `before` definitions must come _before_ examples.
|
34
|
-
* All `after` definitions must come _before_ examples.
|
35
|
-
* All `let` definitions must come _before_ examples.
|
31
|
+
* `subject`, `before`, `after` and `let` definitions must come before examples.
|
36
32
|
|
37
33
|
## Important ⚠️
|
38
34
|
|
@@ -51,7 +47,7 @@ Following [RubyGems naming conventions](https://guides.rubygems.org/name-your-ge
|
|
51
47
|
Add this line to your application's Gemfile:
|
52
48
|
|
53
49
|
```ruby
|
54
|
-
gem "r_spec", ">= 1.0.0.
|
50
|
+
gem "r_spec", ">= 1.0.0.beta8"
|
55
51
|
```
|
56
52
|
|
57
53
|
And then execute:
|
@@ -231,7 +227,7 @@ Benchmark against [100 executions of a file containing one expectation](https://
|
|
231
227
|
| `minitest` | 17.5 |
|
232
228
|
| `test-unit` | 20.5 |
|
233
229
|
|
234
|
-
## Test
|
230
|
+
## Test suite
|
235
231
|
|
236
232
|
__RSpec clone__'s specifications are self-described here: [spec/](https://github.com/cyril/r_spec.rb/blob/main/spec/)
|
237
233
|
|
@@ -241,14 +237,14 @@ __RSpec clone__'s specifications are self-described here: [spec/](https://github
|
|
241
237
|
* Source code: https://github.com/cyril/r_spec.rb
|
242
238
|
* Twitter: [https://twitter.com/cyri\_](https://twitter.com/cyri\_)
|
243
239
|
|
244
|
-
## Special
|
240
|
+
## Special thanks ❤️
|
245
241
|
|
246
242
|
I would like to thank the whole [RSpec team](https://rspec.info/about/) for all their work.
|
247
243
|
It's a great framework and it's a pleasure to work with every day.
|
248
244
|
|
249
245
|
Without RSpec, this clone would not have been possible.
|
250
246
|
|
251
|
-
## Buy me a
|
247
|
+
## Buy me a coffee ☕
|
252
248
|
|
253
249
|
If you like this project please consider making a small donation.
|
254
250
|
|
data/lib/r_spec/dsl.rb
CHANGED
@@ -230,7 +230,7 @@ module RSpec
|
|
230
230
|
|
231
231
|
exit false
|
232
232
|
ensure
|
233
|
-
example
|
233
|
+
example&.send(AFTER_METHOD)
|
234
234
|
end
|
235
235
|
|
236
236
|
# Use the {.its} method to define a single spec that specifies the actual
|
@@ -295,7 +295,7 @@ module RSpec
|
|
295
295
|
|
296
296
|
exit false
|
297
297
|
ensure
|
298
|
-
example
|
298
|
+
example&.send(AFTER_METHOD)
|
299
299
|
end
|
300
300
|
|
301
301
|
# Defines a pending test case.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: expresenter
|