expected 1.1.0 → 1.1.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 +34 -4
- data/lib/expected/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 724ee1e98803b652a7b869c93ce143e10013656c52b4e6d2167896f7318c4b53
|
4
|
+
data.tar.gz: 80d0607ab05c9e7f8c4c53735173ceaad29dd24ca944f1ab27377936faaa3553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db237eae5c400eae9d753878a527a2c6db8210be2fcd82ac140348d641c34028022d4eb1fd03b54c6560123f7a4ff46bcc6e458a6996f1e51cea0ed84d6d16d2
|
7
|
+
data.tar.gz: 13206a425f81463c4c37ae9d6bfd4b6f426530d5e4045abd4fe3461e8140a69e00661466a0e26eed4e3f6be4801ed2d7be8892b12e92cee32b7f62ec8751f082
|
data/README.md
CHANGED
@@ -33,12 +33,22 @@ end
|
|
33
33
|
|
34
34
|
|
35
35
|
|
36
|
-
### `
|
37
|
-
Used to test
|
36
|
+
### `be_a_concern`
|
37
|
+
Used to test that a Module is an ActiveSupport::Concern
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
# Test if the subject
|
41
|
-
it { is_expected.to
|
40
|
+
# Test if the subject is an ActiveSupport::Concern`
|
41
|
+
it { is_expected.to be_a_concern }
|
42
|
+
```
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
### `extend_module`
|
47
|
+
Used to test that a Class or Module extends the supplied Module
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
# Test if the subject extends the supplied Module
|
51
|
+
it { is_expected.to extend_module(SomeModule) }
|
42
52
|
```
|
43
53
|
|
44
54
|
|
@@ -89,6 +99,26 @@ it { is_expected.to have_attr_accessor(:attribute) }
|
|
89
99
|
|
90
100
|
|
91
101
|
|
102
|
+
### `include_module`
|
103
|
+
Used to test that a Class or Module includes the supplied Module
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
# Test if the subject includes the supplied Module
|
107
|
+
it { is_expected.to include_module(SomeModule) }
|
108
|
+
```
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
### `inherit_from`
|
113
|
+
Used to test inheritance
|
114
|
+
|
115
|
+
```ruby
|
116
|
+
# Test if the subject inherits from the supplied Class
|
117
|
+
it { is_expected.to inherit_from(SomeClass) }
|
118
|
+
```
|
119
|
+
|
120
|
+
|
121
|
+
|
92
122
|
## License
|
93
123
|
Expected is copyright © 2019-2020 Taylor Yelverton.
|
94
124
|
It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
|
data/lib/expected/version.rb
CHANGED