rspec-rails 3.8.1 → 3.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +16 -2
- data/lib/generators/rspec/integration/integration_generator.rb +1 -1
- data/lib/generators/rspec/integration/templates/request_spec.rb +1 -1
- data/lib/generators/rspec/mailer/templates/preview.rb +1 -1
- data/lib/rspec/rails/example/system_example_group.rb +2 -2
- data/lib/rspec/rails/matchers/active_job.rb +12 -0
- data/lib/rspec/rails/version.rb +1 -1
- metadata +4 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: edce77d0d2b773c93324d304106851437971402da3cb8f09cfcd95e0b8aaa043
|
4
|
+
data.tar.gz: 42c45cdb32667e36ed9e9ae99f833f1f7dcb5c23d0b4daae5b8dd71f2f05928c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d60c04fdfd11a5010b305a5d7af91335d683d027b5c48ea53446b6ae4b9c5388f23007131f6c0bbdf81251670caa7c61c158ce14815b211ca300c4cc545ac61
|
7
|
+
data.tar.gz: b7d2efcaa5241e0a5a04079f121465426710f3690e8b900a76e6ff43bb71a682ae2072a23b8a80ca079b326a3be55f17c2fd8f97497725f209d10992c78b9e40
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,7 +1,21 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.2...master)
|
3
3
|
|
4
|
-
###
|
4
|
+
### 3.8.2 / 2019-01-13
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Fix issue with generator for preview specs where `Mailer` would be duplicated
|
10
|
+
in the name. (Kohei Sugi, #2037)
|
11
|
+
* Fix the request spec generator to handle namespaced files. (Kohei Sugi, #2057)
|
12
|
+
* Further truncate system test filenames to handle cases when extra words are
|
13
|
+
prepended. (Takumi Kaji, #2058)
|
14
|
+
* Backport: Make the `ActiveJob` matchers fail when multiple jobs are queued
|
15
|
+
for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
|
16
|
+
(Emric Istanful, #2069)
|
17
|
+
|
18
|
+
### 3.8.1 / 2018-10-23
|
5
19
|
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
6
20
|
|
7
21
|
Bug Fixes:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rails_helper'
|
2
2
|
|
3
3
|
RSpec.describe "<%= class_name.pluralize %>", <%= type_metatag(:request) %> do
|
4
|
-
describe "GET /<%=
|
4
|
+
describe "GET /<%= name.underscore.pluralize %>" do
|
5
5
|
it "works! (now write some real specs)" do
|
6
6
|
get <%= index_helper %>_path
|
7
7
|
expect(response).to have_http_status(200)
|
@@ -5,7 +5,7 @@ class <%= class_name %>Preview < ActionMailer::Preview
|
|
5
5
|
|
6
6
|
# Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %>
|
7
7
|
def <%= action %>
|
8
|
-
<%=
|
8
|
+
<%= Rails.version.to_f >= 5.0 ? class_name.sub(/(Mailer)?$/, 'Mailer') : class_name %>.<%= action %>
|
9
9
|
end
|
10
10
|
<% end -%>
|
11
11
|
|
@@ -37,7 +37,7 @@ module RSpec
|
|
37
37
|
@method_name ||= [
|
38
38
|
self.class.name.underscore,
|
39
39
|
RSpec.current_example.description.underscore
|
40
|
-
].join("_").tr(CHARS_TO_TRANSLATE.join, "_")[0...
|
40
|
+
].join("_").tr(CHARS_TO_TRANSLATE.join, "_")[0...200] + "_#{rand(1000)}"
|
41
41
|
end
|
42
42
|
|
43
43
|
# Delegates to `Rails.application`.
|
@@ -57,7 +57,7 @@ module RSpec
|
|
57
57
|
System test integration requires Rails >= 5.1 and has a hard
|
58
58
|
dependency on a webserver and `capybara`, please add capybara to
|
59
59
|
your Gemfile and configure a webserver (e.g. `Capybara.server =
|
60
|
-
:webrick`) before attempting to use system
|
60
|
+
:webrick`) before attempting to use system specs.
|
61
61
|
""".gsub(/\s+/, ' ').strip
|
62
62
|
end
|
63
63
|
|
@@ -197,6 +197,12 @@ module RSpec
|
|
197
197
|
|
198
198
|
check(in_block_jobs)
|
199
199
|
end
|
200
|
+
|
201
|
+
def does_not_match?(proc)
|
202
|
+
set_expected_number(:at_least, 1)
|
203
|
+
|
204
|
+
!matches?(proc)
|
205
|
+
end
|
200
206
|
end
|
201
207
|
|
202
208
|
# @private
|
@@ -205,6 +211,12 @@ module RSpec
|
|
205
211
|
@job = job
|
206
212
|
check(queue_adapter.enqueued_jobs)
|
207
213
|
end
|
214
|
+
|
215
|
+
def does_not_match?(proc)
|
216
|
+
set_expected_number(:at_least, 1)
|
217
|
+
|
218
|
+
!matches?(proc)
|
219
|
+
end
|
208
220
|
end
|
209
221
|
end
|
210
222
|
|
data/lib/rspec/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
45
45
|
F3MdtaDehhjC
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date:
|
47
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: activesupport
|
@@ -278,7 +278,7 @@ licenses:
|
|
278
278
|
- MIT
|
279
279
|
metadata:
|
280
280
|
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
281
|
-
changelog_uri: https://github.com/rspec/rspec-rails/blob/v3.8.
|
281
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v3.8.2/Changelog.md
|
282
282
|
documentation_uri: https://rspec.info/documentation/
|
283
283
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
284
284
|
source_code_uri: https://github.com/rspec/rspec-rails
|
@@ -298,10 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
|
302
|
-
rubygems_version: 2.5.2.3
|
301
|
+
rubygems_version: 3.0.2
|
303
302
|
signing_key:
|
304
303
|
specification_version: 4
|
305
304
|
summary: RSpec for Rails
|
306
305
|
test_files: []
|
307
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|