expected 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -4
  3. data/lib/expected/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66f6dcc60d13674d39514a6681853892400394ac704427369b587cd8f790c3fa
4
- data.tar.gz: fce7d948542985fa557398625de1c64e0411a8d98789a5a62edbc19ff7a6093a
3
+ metadata.gz: 724ee1e98803b652a7b869c93ce143e10013656c52b4e6d2167896f7318c4b53
4
+ data.tar.gz: 80d0607ab05c9e7f8c4c53735173ceaad29dd24ca944f1ab27377936faaa3553
5
5
  SHA512:
6
- metadata.gz: 89b1776f9c5ce6730cc148adcd86243c4cd802043f0f87cf7bab8e913dd47a5013b9ceb918047af01c2ae9d635e80cd2c759489904e26a73d3d1a7beeaf42181
7
- data.tar.gz: d34e29d614a038109302e5d00e2b2257529af933853c267c8e31f05b69694bfb607d97961a5c3ff6551d9b19ad2168c9c8cc4da0c140afdded25e2b48ca8fb5a
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
- ### `inherit_from`
37
- Used to test inheritance
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 inherits from the supplied Class
41
- it { is_expected.to inherit_from(SomeClass) }
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.
@@ -6,7 +6,7 @@ module Expected
6
6
  module Version
7
7
  MAJOR = 1
8
8
  MINOR = 1
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  end
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expected
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Yelverton