Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency rspec-rails to v6 #55

Merged
merged 1 commit into from Jan 19, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 19, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rspec-rails (changelog) '3.9.1' -> '6.1.0' age adoption passing confidence

Release Notes

rspec/rspec-rails (rspec-rails)

v6.1.0

Compare Source

Full Changelog

Enhancements:

  • Support for Rails 7.1
  • Minor tweak to generated rails_helper.rb to use Rails.root.join.
    (@​masato-bkn, Ryo Nakamura, #​2640, #​2678)
  • Add RSpec::Rails::Configuration.fixture_paths configuration to support
    the matching change to ActiveRecord::TestFixtures, previous singular
    form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, #​2673)
  • Add send_email matcher to match emails rather than specific jobs.
    (Andrei Kaleshka, #​2670)
  • When using render in view specs, :locals will now be merged into the
    default implicit template, allowing render locals: {...} style calls.
    (Jon Rowe, #​2686)
  • Add support for Rails.config.action_mailer.preview_paths on Rails 7.1/
    (Jon Rowe, #​2706)

v6.0.4

Compare Source

Full Changelog

Bug Fixes:

  • Fuzzy match have_broadcasted_to so that argument matchers can be used.
    (Timothy Peraza, #​2684)
  • Fix fixture warning during :context hooks on Rails main. (Jon Rowe, #​2685)
  • Fix stub_template on Rails main. (Jon Rowe, #​2685)
  • Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, #​2694)
  • Prevent take_failed_screenshot producing an additional error through metadata
    access. (Jon Rowe, #​2704)
  • Use ActiveSupport::ExecutionContext::TestHelper on Rails 7+. (Jon Rowe, #​2711)
  • Fix leak of templates stubbed with stub_template on Rails 7.1. (Jon Rowe, #​2714)

v6.0.3

Compare Source

Full Changelog

Bug Fixes:

  • Set ActiveStorage::FixtureSet.file_fixture_path when including file fixture support.
    (Jason Yates, #​2671)
  • Allow broadcast_to matcher to take Symbols. (@​Vagab, #​2680)

v6.0.2

Compare Source

Full Changelog

Bug Fixes:

  • Fix ActionView::PathSet when render_views is off for Rails 7.1.
    (Eugene Kenny, Iliana, #​2631)
  • Support Rails 7.1's #fixtures_paths in example groups (removes a deprecation warning).
    (Nicholas Simmons, #​2664)
  • Fix have_enqueued_job to properly detect enqueued jobs when other jobs were
    performed inside the expectation block. (Slava Kardakov, Phil Pirozhkov, #​2573)

v6.0.1

Compare Source

Full Changelog

Bug Fixes:

  • Prevent tagged logged support in Rails 7 calling #name. (Jon Rowe, #​2625)

v6.0.0

Compare Source

Full Changelog

Enhancements:

  • Support Rails 7
  • Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, #​2599)
  • Generators now respects default path configuration option. (@​vivekmiyani, #​2508)

Breaking Changes:

  • Drop support for Rails below 6.1
  • Drop support for Ruby below 2.5 (following supported versions of Rails 6.1)
  • Change the order of after_teardown from after to around in system
    specs to improve compatibility with extensions and Capybara. (Tim Diggins, #​2596)

Deprecations:

  • Deprecates integration spec generator (rspec:integration)
    which was an alias of request spec generator (rspec:request)
    (Luka Lüdicke, #​2374)

v5.1.2

Compare Source

Full Changelog

Bug Fixes:

  • Fix controller scaffold templates parameter name. (Taketo Takashima, #​2591)
  • Include generator specs in the inferred list of specs. (Jason Karns, #​2597)

v5.1.1

Compare Source

Full Changelog

Bug Fixes:

  • Properly handle global id serialised arguments in have_enqueued_mail.
    (Jon Rowe, #​2578)

v5.1.0

Compare Source

Full Changelog

Enhancements:

  • Make the API request scaffold template more consistent and compatible with
    Rails 6.1. (Naoto Hamada, #​2484)
  • Change the scaffold rails_helper.rb template to use require_relative.
    (Jon Dufresne, #​2528)

v5.0.3

Compare Source

Full Changelog

Bug Fixes:

  • Properly name params in controller and request spec templates when
    using the --model-name parameter. (@​kenzo-tanaka, #​2534)
  • Fix parameter matching with mail delivery job and
    ActionMailer::MailDeliveryJob. (Fabio Napoleoni, #​2516, #​2546)
  • Fix Rails 7 have_enqueued_mail compatibility (Mikael Henriksson, #​2537, #​2546)

v5.0.2

Compare Source

Full Changelog

Bug Fixes:

  • Prevent generated job specs from duplicating _job in filenames.
    (Nick Flückiger, #​2496)
  • Fix ActiveRecord::TestFixture#uses_transaction by using example description
    to replace example name rather than example in our monkey patched
    run_in_transaction? method. (Stan Lo, #​2495)
  • Prevent keyword arguments being lost when methods are invoked dynamically
    in controller specs. (Josh Cheek, #​2509, #​2514)

v5.0.1

Compare Source

Full Changelog

Bug Fixes:

  • Limit multibyte example descriptions when used in system tests for #method_name
    which ends up as screenshot names etc. (@​y-yagi, #​2405, #​2487)

v5.0.0

Compare Source

Full Changelog

Enhancements:

  • Support new #file_fixture_path and new fixture test support code. (Jon Rowe, #​2398)
  • Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more #​2398)

Breaking Changes:

  • Drop support for Rails below 5.2.

v4.1.2

Compare Source

v4.1.1

Compare Source

Bug Fixes:

v4.1.0

Compare Source

Enhancements:

  • Issue a warning when using job matchers with #at mismatch on usec precision.
    (Jon Rowe, #​2350)
  • Generated request specs now have a bare _spec suffix instead of request_spec.
    (Eloy Espinaco, Luka Lüdicke, #​2355, #​2356, #​2378)
  • Generated scaffold now includes engine route helpers when inside a mountable engine.
    (Andrew W. Lee, #​2372)
  • Improve request spec "controller" scafold when no action is specified.
    (Thomas Hareau, #​2399)
  • Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, #​2423)
  • Prevent collisions with let(:name) for Rails 6.1 and let(:method_name) on older
    Rails. (Benoit Tigeot, #​2461)

v4.0.2

Compare Source

Full Changelog

Bug Fixes:

  • Indent all extra failure lines output from system specs. (Alex Robbin, #​2321)
  • Generated request spec for update now uses the correct let. (Paul Hanyzewski, #​2344)
  • Return true/false from predicate methods in config rather than raw values.
    (Phil Pirozhkov, Jon Rowe, #​2353, #​2354)
  • Remove old #fixture_path feature detection code which broke under newer Rails.
    (Koen Punt, Jon Rowe, #​2370)
  • Fix an error when use_active_record is false (Phil Pirozhkov, #​2423)

v4.0.1

Compare Source

Full Changelog

Bug Fixes:

  • Remove warning when calling driven_by in system specs. (Aubin Lorieux, #​2302)
  • Fix comparison of times for #at in job matchers. (Jon Rowe, Markus Doits, #​2304)
  • Allow have_enqueued_mail to match when a sub class of ActionMailer::DeliveryJob
    is set using <Class>.delivery_job=. (Atsushi Yoshida #​2305)
  • Restore Ruby 2.2.x compatibility. (Jon Rowe, #​2332)
  • Add required_ruby_version to gem spec. (Marc-André Lafortune, #​2319, #​2338)

v4.0.0

Compare Source

Full Changelog

Enhancements:

  • Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #​2071)
  • Adds support for JRuby on Rails 5.2 and 6
  • Add support for parameterised mailers (Ignatius Reza, #​2125)
  • Add ActionMailbox spec helpers and test type (James Dabbs, #​2119)
  • Add ActionCable spec helpers and test type (Vladimir Dementyev, #​2113)
  • Add support for partial args when using have_enqueued_mail
    (Ignatius Reza, #​2118, #​2125)
  • Add support for time arguments for have_enqueued_job (@​alpaca-tc, #​2157)
  • Improve path parsing in view specs render options. (John Hawthorn, #​2115)
  • Add routing spec template as an option for generating controller specs.
    (David Revelo, #​2134)
  • Add argument matcher support to have_enqueued_* matchers. (Phil Pirozhkov, #​2206)
  • Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #​2224)
  • Add have_been_performed/have_performed_job/perform_job ActiveJob
    matchers (Isaac Seymour, #​1785)
  • Default to generating request specs rather than controller specs when
    generating a controller (Luka Lüdicke, #​2222)
  • Allow ActiveJob matchers #on_queue modifier to take symbolic queue names. (Nils Sommer, #​2283)
  • The scaffold generator now generates request specs in preference to controller specs.
    (Luka Lüdicke, #​2288)
  • Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #​2266)
  • Set ActionDispatch::SystemTesting::Server.silence_puma = true when running system specs.
    (ta1kt0me, Benoit Tigeot, #​2289)

Bug Fixes:

  • EmptyTemplateHandler.call now needs to support an additional argument in
    Rails 6. (Pavel Rosický, #​2089)
  • Suppress warning from SQLite3Adapter.represent_boolean_as_integer which is
    deprecated. (Pavel Rosický, #​2092)
  • ActionView::Template#formats has been deprecated and replaced by
    ActionView::Template#format(Seb Jacobs, #​2100)
  • Replace before_teardown as well as after_teardown to ensure screenshots
    are generated correctly. (Jon Rowe, #​2164)
  • ActionView::FixtureResolver#hash has been renamed to ActionView::FixtureResolver#data.
    (Penelope Phippen, #​2076)
  • Prevent driven_by(:selenium) being called due to hook precedence.
    (Takumi Shotoku, #​2188)
  • Prevent a WrongScopeError being thrown during loading fixtures on Rails
    6.1 development version. (Edouard Chin, #​2215)
  • Fix Mocha mocking support with should. (Phil Pirozhkov, #​2256)
  • Restore previous conditional check for setting default_url_options in feature
    specs, prevents a NoMethodError in some scenarios. (Eugene Kenny, #​2277)
  • Allow changing ActiveJob::Base.queue_adapter inside a system spec.
    (Jonathan Rochkind, #​2242)
  • rails generate generator command now creates related spec file (Joel Azemar, #​2217)
  • Relax upper capybara version constraint to allow for Capybara 3.x (Phil Pirozhkov, #​2281)
  • Clear ActionMailer test mailbox after each example (Benoit Tigeot, #​2293)

Breaking Changes:

  • Drops support for Rails below 5.0
  • Drops support for Ruby below 2.3

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@yegor256
Copy link
Owner

@rultor please, try to merge, since 3 checks have passed

@rultor
Copy link
Collaborator

rultor commented Jan 19, 2024

@rultor please, try to merge, since 3 checks have passed

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit abd8e97 into master Jan 19, 2024
3 checks passed
@renovate renovate bot deleted the renovate/rspec-rails-6.x branch January 19, 2024 15:39
@rultor
Copy link
Collaborator

rultor commented Jan 19, 2024

@rultor please, try to merge, since 3 checks have passed

@yegor256 Done! FYI, the full log is here (took me 11min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants