rspec-graphql_types 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -3
- data/README.md +2 -4
- data/lib/rspec/graphql_types/version.rb +1 -1
- data/lib/rspec/graphql_types.rb +6 -0
- 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: 1992c4572ac3e3e1200b6d30fbd26643b2217f6bc8770265bb3c85e36f8f6b70
|
4
|
+
data.tar.gz: c4f29574be27726a6a62c4f79c950c816038be987f249386d76bfbf5621737f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b060bb971fa11038c8612e194af8fc1910f1dd4309457443054c1bd1129f75287f81e7cde78bffc067407667bf5c3235422bdf244d5cfa2aef8ee2f208b73c05
|
7
|
+
data.tar.gz: 7bd5191b168fd8f0077e91d5fa49022a7fad859fb4e6fdc7725a9e9b15a481da537105d8e59f69a54990fb49c9fa9e72349f28304d42ae7653a19122e79cd0bc
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rspec-graphql_types (1.0.
|
4
|
+
rspec-graphql_types (1.0.3)
|
5
5
|
activesupport
|
6
6
|
graphql
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.1.4)
|
11
|
+
activesupport (6.1.4.1)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 1.6, < 2)
|
14
14
|
minitest (>= 5.1)
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
zeitwerk (~> 2.3)
|
17
17
|
concurrent-ruby (1.1.9)
|
18
18
|
diff-lcs (1.4.4)
|
19
|
-
graphql (1.12.
|
19
|
+
graphql (1.12.16)
|
20
20
|
i18n (1.8.10)
|
21
21
|
concurrent-ruby (~> 1.0)
|
22
22
|
minitest (5.14.4)
|
@@ -40,6 +40,7 @@ GEM
|
|
40
40
|
|
41
41
|
PLATFORMS
|
42
42
|
arm64-darwin-20
|
43
|
+
x86_64-darwin-20
|
43
44
|
|
44
45
|
DEPENDENCIES
|
45
46
|
rake (~> 13.0)
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
# Rspec::
|
1
|
+
# Rspec::GraphQLTypes
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
This library can be used to unit test GraphQL types from the 'graphql' library.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
data/lib/rspec/graphql_types.rb
CHANGED
@@ -16,6 +16,10 @@ module Rspec
|
|
16
16
|
def multiplex
|
17
17
|
nil
|
18
18
|
end
|
19
|
+
|
20
|
+
def warden
|
21
|
+
@warden
|
22
|
+
end
|
19
23
|
end
|
20
24
|
|
21
25
|
included do
|
@@ -36,6 +40,8 @@ module Rspec
|
|
36
40
|
type.coerce_result(value, context)
|
37
41
|
when 'LIST'
|
38
42
|
value.map { |v| graphql_object(type.of_type, v) }
|
43
|
+
when 'ENUM'
|
44
|
+
type.coerce_result(value, context)
|
39
45
|
else
|
40
46
|
raise "Unknown type kind #{type.kind.name}"
|
41
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-graphql_types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tejas Dinkar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|