rspec-graphql_matchers 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rspec/graphql_matchers/have_a_field.rb +1 -1
- data/lib/rspec/graphql_matchers/version.rb +1 -1
- data/rspec-graphql_matchers.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 277f87e873956d23acf342b90a249ca925ebba90d3ef98f14a5c7e9a7564df01
|
4
|
+
data.tar.gz: 8b70cc404872f1ac41d53aa3de266f1d25e9d217bcb5dcd37384cd57249eb346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a30d237270557a0b67c36bbe406c2413997cce4c673e2ba416d8b0ad48dc1b961fca3689e29eaa90c106e4a945f82bc16abfbcc4fc0de7ca145a91214611de67
|
7
|
+
data.tar.gz: 37ddb46780ee142f17008757f1c86e5cfad473adbc84d888e7ed4d64965e84f20cc098af8c137aa28d2da3416fcf3dbc3b3d434d9c524006ec618577eb0cbfc2
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
|
9
9
|
### Bug fixes
|
10
10
|
|
11
|
+
## 1.2 (Feb 6th, 2020)
|
12
|
+
|
13
|
+
- Added support to underscored arguments in have_field (https://github.com/khamusa/rspec-graphql_matchers/pull/29 thanks to @makketagg)
|
14
|
+
|
11
15
|
## 1.1 (Sep 19th, 2019)
|
12
16
|
|
13
17
|
- Added graphql-ruby 1.9.x support (thanks to @severin)
|
@@ -10,7 +10,7 @@ module RSpec
|
|
10
10
|
module GraphqlMatchers
|
11
11
|
class HaveAField < BaseMatcher
|
12
12
|
def initialize(expected_field_name, fields = :fields)
|
13
|
-
@expected_field_name = expected_field_name.to_s
|
13
|
+
@expected_field_name = GraphQL::Schema::Member::BuildType.camelize(expected_field_name.to_s)
|
14
14
|
@fields = fields.to_sym
|
15
15
|
@expectations = []
|
16
16
|
end
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.require_paths = ['lib']
|
27
27
|
|
28
28
|
spec.add_runtime_dependency 'graphql', '>= 1.8', '< 2.0'
|
29
|
-
spec.add_development_dependency 'bundler', '~>
|
29
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
30
30
|
spec.add_development_dependency 'rubocop', '0.71'
|
31
31
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
32
32
|
spec.add_development_dependency 'pry', '~> 0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-graphql_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Brandão
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '2.0'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '2.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rubocop
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|