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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f5297325cfa2fe95e5d494c57477876d0d7f29539263b32723aa26205bb0d8c
4
- data.tar.gz: 9e18d66bed156f6f49a4474b3c067b474686d62c42342ac808dfe43a9068acd8
3
+ metadata.gz: 89bbe10ff2f4cb2dc4a0468807922e34e59bcc0e8d1ba6b2b295d7cd865e20d9
4
+ data.tar.gz: e208b6e6daebf07490127885fd60e02523b29f50b4aa7aeeb55365f04e0d7f0b
5
5
  SHA512:
6
- metadata.gz: ca05ae2d963f1a19795c18672229ab6793ab8540f977e27c45a2667c4b0e2aeed72ae2c5a844125582cdedc2a7add71469d2798c21cabc86bba39b0332612538
7
- data.tar.gz: 5f65c934c686d72585be5d802b40bf8b00387f758f53863a99d07b9451bb8fce7b62c98f5260c920b5250292893fa4ebfaeafba5fb5b8f67244588b6e999ce0f
6
+ metadata.gz: 6963670af580b8efd1dc63039f5363131b58e87bfd93d7717db17f2cdc96414ea41f9df64988becf8e3ac564895ed8426d5d8c56b100f8348c0b853d822f476e
7
+ data.tar.gz: c2c99ef53c28b95157e436007ccdf00b1c05a9a5297ae683f17b5389dd75f7f47bd3330a24f031216c79a269b01bd9f5248b7a4ab1cd6506d2f14dd7c4e2d373
data/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## v0.57.1
4
4
  - Add `Ezcater/RspecRequireHttpStatusMatcher` cop.
5
- - Enable `RSpec/Rails/HttpStatus` cop and enforce symbols.
5
+ - Enable `Rails/HttpStatus` cop and enforce symbols.
6
6
 
7
7
  ## v0.57.0
8
8
  - Update to rubocop v0.57.2 and rubocop-rspec v1.27.0.
data/conf/rubocop.yml CHANGED
@@ -74,7 +74,9 @@ RSpec/MultipleExpectations:
74
74
  RSpec/NestedGroups:
75
75
  Max: 5
76
76
 
77
+ # From rubocop-rspec
77
78
  Rails/HttpStatus:
79
+ Enabled: true
78
80
  EnforcedStyle: symbolic
79
81
 
80
82
  Style/EmptyLiteral:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzcaterRubocop
4
- VERSION = "0.57.1.rc3"
4
+ VERSION = "0.57.1.rc4"
5
5
  end
@@ -8,14 +8,14 @@ module RuboCop
8
8
  # @example
9
9
  #
10
10
  # # good
11
- # expect(response).to be_created
12
- # expect(response).to be_bad_request
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 have_http_status 201
16
- # expect(response).to have_http_status 400
15
+ # expect(response.code).to eq 201
16
+ # expect(response.code).to eq 400
17
17
  class RspecRequireHttpStatusMatcher < Cop
18
- MSG = "Use the `have_http_status_code` matcher, like `expect(response).to have_http_status :bad_request`, "\
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.rc3
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-02 00:00:00.000000000 Z
11
+ date: 2018-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler