rspec-rails 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 35b6fba337e6c764e78383822b50a60906fbc279
4
- data.tar.gz: 438429f0eaac9ecc41ab27aba413d22db08298eb
2
+ SHA256:
3
+ metadata.gz: edce77d0d2b773c93324d304106851437971402da3cb8f09cfcd95e0b8aaa043
4
+ data.tar.gz: 42c45cdb32667e36ed9e9ae99f833f1f7dcb5c23d0b4daae5b8dd71f2f05928c
5
5
  SHA512:
6
- metadata.gz: dfbdeadf6bdcdbef51cdf3fe111021788fd16a035a12f611c376835a1fe2cbc3672a849ee76d22e1be1c6611597373860864da388c4f1af7a6b200197eb71b2a
7
- data.tar.gz: 8bbb895d19fcae396c21d7078928439fce1b7fa13f91670da7f03309b7c5290d8b4f47e74380549a27c0a767a1188385f83f324d0baef4587e1c1ec2a65c57a5
6
+ metadata.gz: 1d60c04fdfd11a5010b305a5d7af91335d683d027b5c48ea53446b6ae4b9c5388f23007131f6c0bbdf81251670caa7c61c158ce14815b211ca300c4cc545ac61
7
+ data.tar.gz: b7d2efcaa5241e0a5a04079f121465426710f3690e8b900a76e6ff43bb71a682ae2072a23b8a80ca079b326a3be55f17c2fd8f97497725f209d10992c78b9e40
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,7 +1,21 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.1...master)
2
+ [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.2...master)
3
3
 
4
- ### Development
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:
@@ -15,7 +15,7 @@ module Rspec
15
15
  return unless options[:request_specs]
16
16
 
17
17
  template 'request_spec.rb',
18
- File.join('spec/requests', class_path, "#{table_name}_spec.rb")
18
+ File.join('spec/requests', "#{name.underscore.pluralize}_spec.rb")
19
19
  end
20
20
  end
21
21
  end
@@ -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 /<%= table_name %>" do
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
- <%= class_name %><%= Rails.version.to_f >= 5.0 ? "Mailer" : "" %>.<%= action %>
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...251] + "_#{rand(1000)}"
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 tests.
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
 
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '3.8.1'
6
+ STRING = '3.8.2'
7
7
  end
8
8
  end
9
9
  end
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.1
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: 2018-10-23 00:00:00.000000000 Z
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.1/Changelog.md
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
- rubyforge_project:
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