Skip to content

Commit 3731774

Browse files
committed
Release v0.5
1 parent 2b437eb commit 3731774

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@
88

99
### Bug fixes
1010

11+
## 0.5.0 (May 10, 2017)
12+
13+
### New features
14+
15+
- (PR #4) New matchers for mutations: `have_an_input_field` and `have_a_return_field` (Thanks to @aaronklaassen).
16+
17+
## 0.4.0 (Feb, 2017)
18+
19+
### New features
20+
21+
- Improvements on error messages of have_a_field(...).of_type(...)
22+
23+
### Bug fixes
24+
25+
- Fixed a bug preventing proper type checking when using matchers in the form have_a_field(fname).of_type(types.X). The bug would not happen when providing the type expectation as a string, only when using the GraphQL constants.
26+
1127
## 0.3.0 (Sep 16, 2016)
1228

1329
### Breaking changes

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ gem 'rspec-graphql_matchers'
1111
## Usage
1212

1313
The matchers currently supported are:
14-
- `expect(graphql_type).to have_a_field(field_name).that_returns(valid_type)`
15-
- `expect(graphql_field).to be_of_type(valid_type)`
16-
- `expect(graphql_field).to accept_arguments(hash_of_arg_names_and_valid_types)`
14+
- `expect(a_graphql_object).to have_a_field(field_name).that_returns(valid_type)`
15+
- `expect(a_mutation_type).to have_a_return_field(field_name).returning(valid_type)`
16+
- `expect(a_mutation_type).to have_an_input_field(field_name).of_type(valid_type)`
17+
- `expect(a_field).to be_of_type(valid_type)`
18+
- `expect(an_input).to accept_arguments(hash_of_arg_names_and_valid_types)`
19+
- `expect(an_input).to accept_arguments(hash_of_arg_names_and_valid_types)`
1720

1821
Where a valid type for the expectation is either:
1922
- A `GraphQL::ObjectType` object (ex: `types.String`, `!types.Int`, `types[types.Int]`, or your own)
@@ -137,8 +140,6 @@ For better fluency, `accept_arguments` is also available in singular form, as
137140

138141
## TODO
139142

140-
- Setup CI and integrate w/codeclimate
141-
- Setup codeclimate / CI badges
142143
- New matchers!
143144

144145
## Contributing

lib/rspec/graphql_matchers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Rspec
22
module GraphqlMatchers
3-
VERSION = '0.3.1'.freeze
3+
VERSION = '0.5'.freeze
44
end
55
end

0 commit comments

Comments
 (0)