rspec-rails 6.1.2 → 6.1.3
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 +4 -4
 - checksums.yaml.gz.sig +0 -0
 - data/Changelog.md +11 -1
 - data/lib/generators/rspec/mailer/templates/preview.rb +2 -2
 - data/lib/rspec/rails/example/rails_example_group.rb +2 -0
 - data/lib/rspec/rails/matchers/have_http_status.rb +1 -5
 - data/lib/rspec/rails/version.rb +1 -1
 - data.tar.gz.sig +0 -0
 - metadata +4 -4
 - metadata.gz.sig +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: deeeefe5add9c88c1d8709df6f4859a0280fe1a74b7d422c446bae6edd84940e
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 970418fa92cdd51b634a9ed55a701ca3432657e3ea5b4bfba8629910a041f885
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f6e156b4ad6e766af357bddbe10bac0fa3a2336fea1eb5f24c9cb4da637a4e630ede7bcd906d03e9175a6e2c8641754d180d67551fc0d97842b9497d72143b9c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 74e6a50c6d9b2329772280dc95c82ea94df55cdab0aa57aad3c9085faf5b15e2155d6f5e5f223e0b5165955472fd0d9447e25b8d9b8db2cb0dc914fa6c5ab3e4
         
     | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/Changelog.md
    CHANGED
    
    | 
         @@ -1,5 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ### Development
         
     | 
| 
       2 
     | 
    
         
            -
            [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1. 
     | 
| 
      
 2 
     | 
    
         
            +
            [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.3...6-1-maintenance)
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            ### 6.1.3 / 2024-06-19
         
     | 
| 
      
 5 
     | 
    
         
            +
            [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.2...v6.1.3)
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            Bug Fixes:
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            * Reset `ActiveSupport::CurrentAttributes` between examples. (Javier Julio, #2752)
         
     | 
| 
      
 10 
     | 
    
         
            +
            * Fix a broken link in generated mailer previews. (Chiara Núñez, #2764)
         
     | 
| 
      
 11 
     | 
    
         
            +
            * Fix `have_status_code` behaviour with deprecated status names by delegating
         
     | 
| 
      
 12 
     | 
    
         
            +
              to `Rack::Utils.status_code/1` to set the expected status code. (Darren Boyd, #2765)
         
     | 
| 
       3 
13 
     | 
    
         | 
| 
       4 
14 
     | 
    
         
             
            ### 6.1.2 / 2024-03-19
         
     | 
| 
       5 
15 
     | 
    
         
             
            [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.1...v6.1.2)
         
     | 
| 
         @@ -1,9 +1,9 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <% module_namespacing do -%>
         
     | 
| 
       2 
     | 
    
         
            -
            # Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>
         
     | 
| 
      
 2 
     | 
    
         
            +
            # Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>_mailer
         
     | 
| 
       3 
3 
     | 
    
         
             
            class <%= class_name %><%= 'Mailer' unless class_name.end_with?('Mailer') %>Preview < ActionMailer::Preview
         
     | 
| 
       4 
4 
     | 
    
         
             
            <% actions.each do |action| -%>
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
              # Preview this email at http://localhost:3000/rails/mailers/<%= file_path  
     | 
| 
      
 6 
     | 
    
         
            +
              # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>_mailer/<%= action %>
         
     | 
| 
       7 
7 
     | 
    
         
             
              def <%= action %>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <%= class_name.sub(/(Mailer)?$/, 'Mailer') %>.<%= action %>
         
     | 
| 
       9 
9 
     | 
    
         
             
              end
         
     | 
| 
         @@ -3,6 +3,7 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
            require 'rspec/rails/matchers'
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            if ::Rails::VERSION::MAJOR >= 7
         
     | 
| 
      
 6 
     | 
    
         
            +
              require 'active_support/current_attributes/test_helper'
         
     | 
| 
       6 
7 
     | 
    
         
             
              require 'active_support/execution_context/test_helper'
         
     | 
| 
       7 
8 
     | 
    
         
             
            end
         
     | 
| 
       8 
9 
     | 
    
         | 
| 
         @@ -18,6 +19,7 @@ module RSpec 
     | 
|
| 
       18 
19 
     | 
    
         
             
                  include RSpec::Rails::FixtureSupport
         
     | 
| 
       19 
20 
     | 
    
         
             
                  if ::Rails::VERSION::MAJOR >= 7
         
     | 
| 
       20 
21 
     | 
    
         
             
                    include RSpec::Rails::TaggedLoggingAdapter
         
     | 
| 
      
 22 
     | 
    
         
            +
                    include ActiveSupport::CurrentAttributes::TestHelper
         
     | 
| 
       21 
23 
     | 
    
         
             
                    include ActiveSupport::ExecutionContext::TestHelper
         
     | 
| 
       22 
24 
     | 
    
         
             
                  end
         
     | 
| 
       23 
25 
     | 
    
         
             
                end
         
     | 
| 
         @@ -216,11 +216,7 @@ module RSpec 
     | 
|
| 
       216 
216 
     | 
    
         
             
                      # @see Rack::Utils::SYMBOL_TO_STATUS_CODE
         
     | 
| 
       217 
217 
     | 
    
         
             
                      # @raise [ArgumentError] if an associated code could not be found
         
     | 
| 
       218 
218 
     | 
    
         
             
                      def set_expected_code!
         
     | 
| 
       219 
     | 
    
         
            -
                        @expected ||=
         
     | 
| 
       220 
     | 
    
         
            -
                          Rack::Utils::SYMBOL_TO_STATUS_CODE.fetch(expected_status) do
         
     | 
| 
       221 
     | 
    
         
            -
                            raise ArgumentError,
         
     | 
| 
       222 
     | 
    
         
            -
                                  "Invalid HTTP status: #{expected_status.inspect}"
         
     | 
| 
       223 
     | 
    
         
            -
                          end
         
     | 
| 
      
 219 
     | 
    
         
            +
                        @expected ||= Rack::Utils.status_code(expected_status)
         
     | 
| 
       224 
220 
     | 
    
         
             
                      end
         
     | 
| 
       225 
221 
     | 
    
         
             
                    end
         
     | 
| 
       226 
222 
     | 
    
         | 
    
        data/lib/rspec/rails/version.rb
    CHANGED
    
    
    
        data.tar.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        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: 6.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 6.1.3
         
     | 
| 
       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: 2024- 
     | 
| 
      
 47 
     | 
    
         
            +
            date: 2024-06-19 00:00:00.000000000 Z
         
     | 
| 
       48 
48 
     | 
    
         
             
            dependencies:
         
     | 
| 
       49 
49 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       50 
50 
     | 
    
         
             
              name: actionpack
         
     | 
| 
         @@ -297,7 +297,7 @@ licenses: 
     | 
|
| 
       297 
297 
     | 
    
         
             
            - MIT
         
     | 
| 
       298 
298 
     | 
    
         
             
            metadata:
         
     | 
| 
       299 
299 
     | 
    
         
             
              bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
         
     | 
| 
       300 
     | 
    
         
            -
              changelog_uri: https://github.com/rspec/rspec-rails/blob/v6.1. 
     | 
| 
      
 300 
     | 
    
         
            +
              changelog_uri: https://github.com/rspec/rspec-rails/blob/v6.1.3/Changelog.md
         
     | 
| 
       301 
301 
     | 
    
         
             
              documentation_uri: https://rspec.info/documentation/
         
     | 
| 
       302 
302 
     | 
    
         
             
              mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
         
     | 
| 
       303 
303 
     | 
    
         
             
              source_code_uri: https://github.com/rspec/rspec-rails
         
     | 
| 
         @@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       317 
317 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       318 
318 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       319 
319 
     | 
    
         
             
            requirements: []
         
     | 
| 
       320 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 320 
     | 
    
         
            +
            rubygems_version: 3.1.6
         
     | 
| 
       321 
321 
     | 
    
         
             
            signing_key:
         
     | 
| 
       322 
322 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       323 
323 
     | 
    
         
             
            summary: RSpec for Rails
         
     | 
    
        metadata.gz.sig
    CHANGED
    
    | 
         Binary file 
     |