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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95bbde7e6185bd3338294aa487a1f3cfaa794e2f94203f610d3c23f43577a858
4
- data.tar.gz: de25f9532825e473237eab0d711d2991b5553a01749e355d5479d98b5c9b0ce8
3
+ metadata.gz: 277f87e873956d23acf342b90a249ca925ebba90d3ef98f14a5c7e9a7564df01
4
+ data.tar.gz: 8b70cc404872f1ac41d53aa3de266f1d25e9d217bcb5dcd37384cd57249eb346
5
5
  SHA512:
6
- metadata.gz: 98947628be39f759fadce2d0febff1761bf7027367bd82d402e9516e4f445d1eff3400bf1de485379949d1bb04a663d6c49e21cc40c293df1b5e8d3249cdaa22
7
- data.tar.gz: 2bac7a4a9d4e1355da652cdd07b643c5741a7cfcc57bc7b4dfb1bce85bb0586b2f9c8072b9030bfecb8a84fbf91eef6c81f37b1d12fd14f821c088a55d54f04b
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rspec
4
4
  module GraphqlMatchers
5
- VERSION = '1.1'
5
+ VERSION = '1.2'
6
6
  end
7
7
  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', '~> 1.12'
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.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: 2019-09-19 00:00:00.000000000 Z
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: '1.12'
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: '1.12'
46
+ version: '2.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rubocop
49
49
  requirement: !ruby/object:Gem::Requirement