ezcater_rubocop 0.57.1.rc3 → 0.57.1.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/conf/rubocop.yml +2 -0
- data/lib/ezcater_rubocop/version.rb +1 -1
- data/lib/rubocop/cop/ezcater/rspec_require_http_status_matcher.rb +5 -5
- 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: 89bbe10ff2f4cb2dc4a0468807922e34e59bcc0e8d1ba6b2b295d7cd865e20d9
|
4
|
+
data.tar.gz: e208b6e6daebf07490127885fd60e02523b29f50b4aa7aeeb55365f04e0d7f0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6963670af580b8efd1dc63039f5363131b58e87bfd93d7717db17f2cdc96414ea41f9df64988becf8e3ac564895ed8426d5d8c56b100f8348c0b853d822f476e
|
7
|
+
data.tar.gz: c2c99ef53c28b95157e436007ccdf00b1c05a9a5297ae683f17b5389dd75f7f47bd3330a24f031216c79a269b01bd9f5248b7a4ab1cd6506d2f14dd7c4e2d373
|
data/CHANGELOG.md
CHANGED
data/conf/rubocop.yml
CHANGED
@@ -8,14 +8,14 @@ module RuboCop
|
|
8
8
|
# @example
|
9
9
|
#
|
10
10
|
# # good
|
11
|
-
# expect(response).to
|
12
|
-
# expect(response).to
|
11
|
+
# expect(response).to have_http_status :created
|
12
|
+
# expect(response).to have_http_status :bad_request
|
13
13
|
#
|
14
14
|
# # bad
|
15
|
-
# expect(response).to
|
16
|
-
# expect(response).to
|
15
|
+
# expect(response.code).to eq 201
|
16
|
+
# expect(response.code).to eq 400
|
17
17
|
class RspecRequireHttpStatusMatcher < Cop
|
18
|
-
MSG = "Use the `
|
18
|
+
MSG = "Use the `have_http_status` matcher, like `expect(response).to have_http_status :bad_request`, "\
|
19
19
|
"rather than `%<node_source>s`"
|
20
20
|
|
21
21
|
def_node_matcher :response_code_assertion, <<~PATTERN
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezcater_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.57.1.
|
4
|
+
version: 0.57.1.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ezCater, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|