rspec-rails 5.0.1 → 5.0.2

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: 7c53afd5a91c31c506c0f517b1056749e33a3c7849f856799763363084a11357
4
- data.tar.gz: f49ce49acf4acc30f23e1126844fa29a15b71280b7222e8f62c956bd2b45c2bb
3
+ metadata.gz: 93e1ee0dc7bb7ea05c19308593f872702af96d6964061a741151eee2e872109a
4
+ data.tar.gz: d76331ed70af267b4ff35ddb4479a470befe5dc54aaf2e07611cc7696873dbd9
5
5
  SHA512:
6
- metadata.gz: 0e1bbb19ac83f61374ed1620ac2b1d1498c5d563c3e677e19c23f0ab0fa961d6fac103c3792b4543c47d83fb862356c3b7b04433ed3fcbf6be64872d799db3f9
7
- data.tar.gz: cf818e3dfbec148def3f7a3e376e5db1316ed5e152ee9beb394ede76291e7671f6a412dfc08b469efa585fe79f17804d7538bdab15a35bc9b6444b7b5d5bac54
6
+ metadata.gz: 8d5f6b9db91c30e791d85446ddcacd6ace734888c08141d4ccc120e3132c81113c67372bdac08c6b46b71f963e4510cdac55fad734e09fb4fc4ad205c59584c9
7
+ data.tar.gz: 9c61a0d38958a2ce62828bc75acb48ba81c16098a65ecc19bc778d0ec962b886163b41d257a096f23a84b99c022dbbe2c1d4435ffe948c2048604e001e7e4bdf
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,18 @@
1
1
  ### Development
2
- [Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.1...5-0-maintenance)
2
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.2...5-0-maintenance)
3
+
4
+ ### 5.0.2 / 2021-08-14
5
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.1...v5.0.2)
6
+
7
+ Bug Fixes:
8
+
9
+ * Prevent generated job specs from duplicating `_job` in filenames.
10
+ (Nick Flückiger, #2496)
11
+ * Fix `ActiveRecord::TestFixture#uses_transaction` by using example description
12
+ to replace example name rather than example in our monkey patched
13
+ `run_in_transaction?` method. (Stan Lo, #2495)
14
+ * Prevent keyword arguments being lost when methods are invoked dynamically
15
+ in controller specs. (Josh Cheek, #2509, #2514)
3
16
 
4
17
  ### 5.0.1 / 2021-03-18
5
18
  [Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1)
@@ -93,7 +106,7 @@ Enhancements:
93
106
  generating a controller (Luka Lüdicke, #2222)
94
107
  * Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
95
108
  * The scaffold generator now generates request specs in preference to controller specs.
96
- (Luka Lüdicke, #2288)
109
+ (Luka Lüdicke, #2288)
97
110
  * Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
98
111
  * Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
99
112
  (ta1kt0me, Benoit Tigeot, #2289)
@@ -5,7 +5,8 @@ module Rspec
5
5
  # @private
6
6
  class JobGenerator < Base
7
7
  def create_job_spec
8
- template 'job_spec.rb.erb', File.join('spec/jobs', class_path, "#{file_name}_job_spec.rb")
8
+ file_suffix = file_name.end_with?('job') ? 'spec.rb' : 'job_spec.rb'
9
+ template 'job_spec.rb.erb', File.join('spec/jobs', class_path, [file_name, file_suffix].join('_'))
9
10
  end
10
11
  end
11
12
  end
@@ -1,7 +1,7 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  <% module_namespacing do -%>
4
- RSpec.describe <%= class_name %>Job, <%= type_metatag(:job) %> do
4
+ RSpec.describe <%= class_name %><%= "Job" unless class_name.end_with?("Job")%>, <%= type_metatag(:job) %> do
5
5
  pending "add some examples to (or delete) #{__FILE__}"
6
6
  end
7
7
  <% end -%>
@@ -176,6 +176,7 @@ module RSpec
176
176
  super
177
177
  end
178
178
  end
179
+ ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
179
180
 
180
181
  included do
181
182
  subject { controller }
@@ -13,7 +13,8 @@ module RSpec
13
13
  # Monkey patched to avoid collisions with 'let(:name)' in Rails 6.1 and after
14
14
  # and let(:method_name) before Rails 6.1.
15
15
  def run_in_transaction?
16
- use_transactional_tests && !self.class.uses_transaction?(self)
16
+ current_example_name = (RSpec.current_example && RSpec.current_example.metadata[:description])
17
+ use_transactional_tests && !self.class.uses_transaction?(current_example_name)
17
18
  end
18
19
 
19
20
  included do
@@ -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 = '5.0.1'
6
+ STRING = '5.0.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: 5.0.1
4
+ version: 5.0.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: 2021-03-18 00:00:00.000000000 Z
47
+ date: 2021-08-14 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: actionpack
@@ -296,7 +296,7 @@ licenses:
296
296
  - MIT
297
297
  metadata:
298
298
  bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
299
- changelog_uri: https://github.com/rspec/rspec-rails/blob/v5.0.1/Changelog.md
299
+ changelog_uri: https://github.com/rspec/rspec-rails/blob/v5.0.2/Changelog.md
300
300
  documentation_uri: https://rspec.info/documentation/
301
301
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
302
302
  source_code_uri: https://github.com/rspec/rspec-rails
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  - !ruby/object:Gem::Version
317
317
  version: '0'
318
318
  requirements: []
319
- rubygems_version: 3.2.4
319
+ rubygems_version: 3.2.22
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: RSpec for Rails
metadata.gz.sig CHANGED
@@ -1,3 +1,4 @@
1
- c�ֹ�!���`O��(& �7��{���#�:��o�3@��"��
2
- ���V����=z0"/�JtL OL\oY��B���^�:�%�֖�����!�3j#krC1R(̾8u�����EUY��{ay��z��{ma�ݢ<��o�=��f��?�d�u���A��ePe�$I�)oЪ�5o|8��iA�賾`�����w��;�� ��\oK���.� �.�Ȏ����Qѫ������e|�b���������Nx���78k΄�ooPJ�,\���� i ��=ا���Pm�?�N<8gr|�t�b]��\#p�
3
- Q��<�;{�V����C�>��2gt���--���&
1
+ ٭���٩�9\o��K"
2
+ K��@E�<��K�Ia5���� ھ�lܱ(5HKNY�����w .OUVś�~�\p7-/+�Y�X5M��� 3SP�d�MI��&I�NPNԷ�I�1X�v�:)Kv8�f�!|�'Z`2�]Sc?:v#�����H#���B��T[�6�_���l?�Y^~|j��s��y��!e9���}��� j ��4Il`t)'Zc�������є����f�����Ot����O;]0�~
3
+ ��_�>G"
4
+ m��5upE!G$Pe\������Z�2�wGh� ����f�,(6�Tnx���9e��Y�U����K��ϩ�Vew�����}