rspec-api_helpers 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/rspec/api_helpers/version.rb +1 -1
- data/rspec-api_helpers.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c08980619017c22065e1a49f255748c058245c9e
|
4
|
+
data.tar.gz: e22ecb29f18e63407450fe2ef083c82b08c0e770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19dac1cfcd16a2119677c704f0220aecff28bb3e2dca01d07b71d7e767f034a39a87a1ef8ea6cee53555ffc6f8fb1a971ea4cd18892efcce02733024da6a071c
|
7
|
+
data.tar.gz: 8a864633feae73817bbc2575bdcbd153cc448fa0ac5b2e13b9be1294d97dfbcb32297aae6e99ca8b73f3124f4c3034af5198a66e58ebcaf41a6a0ea9fab36317
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Usefull Rspec helpers for APIs (currently JSONAPI and AM-JSON adapters are suppo
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'rspec-api_helpers',
|
10
|
+
gem 'rspec-api_helpers', '1.0.3'
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -64,7 +64,7 @@ It expects the HTTP response to include this header (and value).
|
|
64
64
|
#### Resource
|
65
65
|
|
66
66
|
```ruby
|
67
|
-
it_returns_attributes(resource: 'user', model:
|
67
|
+
it_returns_attributes(resource: 'user', model: proc{@user}, attrs: [
|
68
68
|
:email, :name
|
69
69
|
])
|
70
70
|
```
|
data/rspec-api_helpers.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "activesupport", "> 4.2"
|
22
|
+
spec.add_runtime_dependency "rspec-core", "> 3.1"
|
22
23
|
spec.add_development_dependency "bundler", "~> 1.7"
|
23
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-api_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Filippos Vasilakis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - ">"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '4.2'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec-core
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.1'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.1'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: bundler
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
111
|
version: '0'
|
98
112
|
requirements: []
|
99
113
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.12
|
101
115
|
signing_key:
|
102
116
|
specification_version: 4
|
103
117
|
summary: Rspec matchers for APIs
|