rubocop-rspec 1.5.2 → 1.5.3
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/config/default.yml +4 -0
- data/lib/rubocop-rspec.rb +1 -0
- data/lib/rubocop/cop/rspec/named_subject.rb +67 -0
- data/lib/rubocop/rspec/version.rb +1 -1
- data/rubocop-rspec.gemspec +3 -0
- data/spec/expect_violation/expectation_spec.rb +85 -0
- data/spec/rubocop/cop/rspec/any_instance_spec.rb +18 -36
- data/spec/rubocop/cop/rspec/describe_class_spec.rb +65 -62
- data/spec/rubocop/cop/rspec/describe_method_spec.rb +17 -18
- data/spec/rubocop/cop/rspec/described_class_spec.rb +89 -139
- data/spec/rubocop/cop/rspec/example_wording_spec.rb +20 -29
- data/spec/rubocop/cop/rspec/focus_spec.rb +115 -63
- data/spec/rubocop/cop/rspec/instance_variable_spec.rb +23 -35
- data/spec/rubocop/cop/rspec/multiple_describes_spec.rb +16 -31
- data/spec/rubocop/cop/rspec/named_subject_spec.rb +62 -0
- data/spec/rubocop/cop/rspec/not_to_not_spec.rb +14 -16
- data/spec/rubocop/cop/rspec/verified_doubles_spec.rb +39 -43
- data/spec/spec_helper.rb +5 -0
- data/spec/support/expect_violation.rb +166 -0
- metadata +51 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian MacLeod
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -67,6 +67,48 @@ dependencies:
|
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: anima
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: concord
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: adamantium
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
70
112
|
description: |2
|
71
113
|
Code style checking for RSpec files.
|
72
114
|
A plugin for the RuboCop code style enforcing & linting tool.
|
@@ -96,6 +138,7 @@ files:
|
|
96
138
|
- lib/rubocop/cop/rspec/focus.rb
|
97
139
|
- lib/rubocop/cop/rspec/instance_variable.rb
|
98
140
|
- lib/rubocop/cop/rspec/multiple_describes.rb
|
141
|
+
- lib/rubocop/cop/rspec/named_subject.rb
|
99
142
|
- lib/rubocop/cop/rspec/not_to_not.rb
|
100
143
|
- lib/rubocop/cop/rspec/verified_doubles.rb
|
101
144
|
- lib/rubocop/rspec/inject.rb
|
@@ -104,6 +147,7 @@ files:
|
|
104
147
|
- lib/rubocop/rspec/version.rb
|
105
148
|
- lib/rubocop/rspec/wording.rb
|
106
149
|
- rubocop-rspec.gemspec
|
150
|
+
- spec/expect_violation/expectation_spec.rb
|
107
151
|
- spec/project_spec.rb
|
108
152
|
- spec/rubocop/cop/rspec/any_instance_spec.rb
|
109
153
|
- spec/rubocop/cop/rspec/describe_class_spec.rb
|
@@ -115,11 +159,13 @@ files:
|
|
115
159
|
- spec/rubocop/cop/rspec/focus_spec.rb
|
116
160
|
- spec/rubocop/cop/rspec/instance_variable_spec.rb
|
117
161
|
- spec/rubocop/cop/rspec/multiple_describes_spec.rb
|
162
|
+
- spec/rubocop/cop/rspec/named_subject_spec.rb
|
118
163
|
- spec/rubocop/cop/rspec/not_to_not_spec.rb
|
119
164
|
- spec/rubocop/cop/rspec/verified_doubles_spec.rb
|
120
165
|
- spec/rubocop/rspec/util/one_spec.rb
|
121
166
|
- spec/rubocop/rspec/wording_spec.rb
|
122
167
|
- spec/spec_helper.rb
|
168
|
+
- spec/support/expect_violation.rb
|
123
169
|
homepage: http://github.com/nevir/rubocop-rspec
|
124
170
|
licenses:
|
125
171
|
- MIT
|
@@ -145,6 +191,7 @@ signing_key:
|
|
145
191
|
specification_version: 4
|
146
192
|
summary: Code style checking for RSpec files
|
147
193
|
test_files:
|
194
|
+
- spec/expect_violation/expectation_spec.rb
|
148
195
|
- spec/project_spec.rb
|
149
196
|
- spec/rubocop/cop/rspec/any_instance_spec.rb
|
150
197
|
- spec/rubocop/cop/rspec/describe_class_spec.rb
|
@@ -156,8 +203,10 @@ test_files:
|
|
156
203
|
- spec/rubocop/cop/rspec/focus_spec.rb
|
157
204
|
- spec/rubocop/cop/rspec/instance_variable_spec.rb
|
158
205
|
- spec/rubocop/cop/rspec/multiple_describes_spec.rb
|
206
|
+
- spec/rubocop/cop/rspec/named_subject_spec.rb
|
159
207
|
- spec/rubocop/cop/rspec/not_to_not_spec.rb
|
160
208
|
- spec/rubocop/cop/rspec/verified_doubles_spec.rb
|
161
209
|
- spec/rubocop/rspec/util/one_spec.rb
|
162
210
|
- spec/rubocop/rspec/wording_spec.rb
|
163
211
|
- spec/spec_helper.rb
|
212
|
+
- spec/support/expect_violation.rb
|