shoulda-callback-matchers 1.1.3 → 1.1.4
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 +16 -1
- data/lib/shoulda/callback/matchers/version.rb +1 -1
- data/shoulda-callback-matchers.gemspec +3 -3
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bdac84d3031573ed12834acfda35e5c54a47357
|
|
4
|
+
data.tar.gz: a3881d5f3d29eb7e86888503b3866f9bcb7a6f93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f225e04acc369e011cef9fe85c1785f6524ae6cfe2069ec2a1b350ed6de35ffb378ed01356122940c1003dbd0be6667df36cdfe1b3875212fe08f1171e84c06
|
|
7
|
+
data.tar.gz: 4181fb05b498ed09a3c3b780a4e77038bc3056b4d7af0b76f42373392e8c9defea8357d544bf72ee1630754893553d596d533c39356cc6522f5d2bc3a76a90e4
|
data/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
#Shoulda Callback Matchers
|
|
2
2
|
[](http://badge.fury.io/rb/shoulda-callback-matchers) [](https://travis-ci.org/beatrichartz/shoulda-callback-matchers) [](https://codeclimate.com/github/beatrichartz/shoulda-callback-matchers) [](https://gemnasium.com/beatrichartz/shoulda-callback-matchers)
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
Matchers to test before, after and around hooks(currently supports method and object callbacks):
|
|
6
5
|
|
|
6
|
+
# New maintainer wanted
|
|
7
|
+
If you fancy maintaining this gem, tweet [@beatrichartz](https://twitter.com/intent/tweet?text=%40beatrichartz&source=webclient) and I'll transfer it to you!
|
|
8
|
+
|
|
7
9
|
## Usage
|
|
8
10
|
|
|
9
11
|
Method Callbacks:
|
|
@@ -93,6 +95,19 @@ end
|
|
|
93
95
|
|
|
94
96
|
Shoulda will automatically include matchers into the appropriate example groups.
|
|
95
97
|
|
|
98
|
+
## Troubleshooting
|
|
99
|
+
|
|
100
|
+
### RSpec + Spring
|
|
101
|
+
#### undefined method `callback'
|
|
102
|
+
|
|
103
|
+
If you're getting this error, it's probably due to classes being redefined by Spring - currently this library does not accommodate for reloaded classes. The easiest fix is to load the matchers into the test library config in your `rails_helper.rb`:
|
|
104
|
+
|
|
105
|
+
```ruby
|
|
106
|
+
RSpec.configure do |config|
|
|
107
|
+
config.include(Shoulda::Callback::Matchers::ActiveModel)
|
|
108
|
+
end
|
|
109
|
+
```
|
|
110
|
+
|
|
96
111
|
## Credits
|
|
97
112
|
|
|
98
113
|
This gem is maintained by me and its contributors,
|
|
@@ -4,11 +4,11 @@ require 'shoulda/callback/matchers/version'
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "shoulda-callback-matchers"
|
|
6
6
|
s.version = Shoulda::Callback::Matchers::VERSION.dup
|
|
7
|
-
s.authors = ["Beat Richartz"]
|
|
7
|
+
s.authors = ["Beat Richartz", "Jonathan Liss"]
|
|
8
8
|
s.date = Time.now.strftime("%Y-%m-%d")
|
|
9
9
|
s.licenses = ["MIT"]
|
|
10
|
-
s.email = "
|
|
11
|
-
s.homepage = "http://github.com/
|
|
10
|
+
s.email = "jonacom@lissismore.com"
|
|
11
|
+
s.homepage = "http://github.com/jdliss/shoulda-callback-matchers"
|
|
12
12
|
s.summary = "Making callback tests easy on the fingers and eyes"
|
|
13
13
|
s.description = "Making callback tests easy on the fingers and eyes"
|
|
14
14
|
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shoulda-callback-matchers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Beat Richartz
|
|
8
|
+
- Jonathan Liss
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
+
date: 2016-05-14 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: activesupport
|
|
@@ -109,7 +110,7 @@ dependencies:
|
|
|
109
110
|
- !ruby/object:Gem::Version
|
|
110
111
|
version: '3'
|
|
111
112
|
description: Making callback tests easy on the fingers and eyes
|
|
112
|
-
email:
|
|
113
|
+
email: jonacom@lissismore.com
|
|
113
114
|
executables: []
|
|
114
115
|
extensions:
|
|
115
116
|
- ext/mkrf_conf.rb
|
|
@@ -142,7 +143,7 @@ files:
|
|
|
142
143
|
- spec/spec_helper.rb
|
|
143
144
|
- spec/support/class_builder.rb
|
|
144
145
|
- spec/support/model_builder.rb
|
|
145
|
-
homepage: http://github.com/
|
|
146
|
+
homepage: http://github.com/jdliss/shoulda-callback-matchers
|
|
146
147
|
licenses:
|
|
147
148
|
- MIT
|
|
148
149
|
metadata: {}
|
|
@@ -162,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
162
163
|
version: '0'
|
|
163
164
|
requirements: []
|
|
164
165
|
rubyforge_project:
|
|
165
|
-
rubygems_version: 2.
|
|
166
|
+
rubygems_version: 2.5.1
|
|
166
167
|
signing_key:
|
|
167
168
|
specification_version: 4
|
|
168
169
|
summary: Making callback tests easy on the fingers and eyes
|