Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Update dependency rspec-rails to v6 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 20, 2022

Mend Renovate

This PR contains the following updates:

Package Update Change
rspec-rails (changelog) major '~> 3.0' -> '~> 6.0'

Release Notes

rspec/rspec-rails (rspec-rails)

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

v3.9.1

Compare Source

Full Changelog

Bug Fixes:

  • Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #​2117)

v3.9.0

Compare Source

Full Changelog

Enhancements

  • Use __dir__ instead of __FILE__ in generated rails_helper.rb where
    supported. (OKURA Masafumi, #​2048)
  • Add have_enqueued_mail matcher as a "super" matcher to the ActiveJob matchers
    making it easier to match on ActiveJob delivered emails. (Joel Lubrano, #​2047)
  • Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #​1933)
  • Add generator for generator specs. (@​ConSou, #​2085)
  • Add option to generate routes when generating controller specs. (David Revelo, #​2134)

Bug Fixes:

  • Make the ActiveJob matchers fail when multiple jobs are queued for negated
    matches. e.g. expect { job; job; }.to_not have_enqueued_job.
    (Emric Istanful, #​2069)

v3.8.3

Compare Source

Full Changelog

Bug Fixes:

  • Namespaced fixtures now generate a / separated path rather than an _.
    (@​nxlith, #​2077)
  • Check the arity of errors before attempting to use it to generate the be_valid
    error message. (Kevin Kuchta, #​2096)

v3.8.2

Compare Source

Full Changelog

Bug Fixes:

  • Fix issue with generator for preview specs where Mailer would be duplicated
    in the name. (Kohei Sugi, #​2037)
  • Fix the request spec generator to handle namespaced files. (Kohei Sugi, #​2057)
  • Further truncate system test filenames to handle cases when extra words are
    prepended. (Takumi Kaji, #​2058)
  • Backport: Make the ActiveJob matchers fail when multiple jobs are queued
    for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
    (Emric Istanful, #​2069)

v3.8.1

Compare Source

Full Changelog

Bug Fixes:

  • Fix NoMethodError: undefined method 'strip' when using a Pathname object
    as the fixture file path. (Aaron Kromer, #​2026)
  • When generating feature specs, do not duplicate namespace in the path name.
    (Laura Paakkinen, #​2034)
  • Prevent ActiveJob::DeserializationError from being issued when ActiveJob
    matchers de-serialize arguments. (@​aymeric-ledorze, #​2036)

v3.8.0

Compare Source

Full Changelog

Enhancements:

  • Improved message when migrations are pending in the default rails_helper.rb
    (Koichi ITO, #​1924)
  • have_http_status matcher now supports Rails 5.2 style response symbols
    (Douglas Lovell, #​1951)
  • Change generated Rails helper to match Rails standards for Rails.root
    (Alessandro Rodi, #​1960)
  • At support for asserting enqueued jobs have no wait period attached.
    (Brad Charna, #​1977)
  • Cache instances of ActionView::Template used in stub_template resulting
    in increased performance due to less allocations and setup. (Simon Coffey, #​1979)
  • Rails scaffold generator now respects longer namespaces (e.g. api/v1/<thing>).
    (Laura Paakkinen, #​1958)

Bug Fixes:

  • Escape quotation characters when producing method names for system spec
    screenshots. (Shane Cavanaugh, #​1955)
  • Use relative path for resolving fixtures when fixture_path is not set.
    (Laurent Cobos, #​1943)
  • Allow custom template resolvers in view specs. (@​ahorek, #​1941)

v3.7.2

Compare Source

Full Changelog

Bug Fixes:

  • Delay loading system test integration until used. (Jon Rowe, #​1903)
  • Ensure specs using the aggregate failures feature take screenshots on failure.
    (Matt Brictson, #​1907)

v3.7.1

Compare Source

Full Changelog

Bug Fixes:

  • Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #​1884)

v3.7.0

Compare Source

Full Changelog

Bug Fixes:

  • Prevent "template not rendered" log message from erroring in threaded
    environments. (Samuel Cochran, #​1831)
  • Correctly generate job name in error message. (Wojciech Wnętrzak, #​1814)

Enhancements:

  • Allow be_a_new(...).with(...) matcher to accept matchers for
    attribute values. (Britni Alexander, #​1811)
  • Only configure RSpec Mocks if it is fully loaded. (James Adam, #​1856)
  • Integrate with ActionDispatch::SystemTestCase. (Sam Phippen, #​1813)

v3.6.1

Compare Source

v3.6.0

Compare Source

Full Changelog

Enhancements:

  • Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, #​1790)

Bug Fixes:

  • Fix scaffold generator so that it does not generate broken controller specs
    on Rails 3.x and 4.x. (Yuji Nakayama, #​1710)

v3.5.2

Compare Source

Full Changelog

Bug Fixes:

  • Stop unnecessarily loading rspec/core from rspec/rails to avoid
    IRB context warning. (Myron Marston, #​1678)
  • Deserialize arguments within ActiveJob matchers correctly.
    (Wojciech Wnętrzak, #​1684)

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.

@renovate
Copy link
Author

renovate bot commented Nov 20, 2022

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Gemfile.lock
installing v2 tool ruby v3.2.1
linking tool ruby v3.2.1
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]
gem 3.4.6
RubyGems Environment:
  - RUBYGEMS VERSION: 3.4.6
  - RUBY VERSION: 3.2.1 (2023-02-08 patchlevel 31) [x86_64-linux]
  - INSTALLATION DIRECTORY: /tmp/renovate-cache/others/bundler
  - USER INSTALLATION DIRECTORY: /home/ubuntu/.local/share/gem/ruby/3.2.0
  - RUBY EXECUTABLE: /opt/buildpack/tools/ruby/3.2.1/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /tmp/renovate-cache/others/bundler/bin
  - SPEC CACHE DIRECTORY: /home/ubuntu/.local/share/gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /usr/local/ruby/3.2.1/etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - x86_64-linux
  - GEM PATHS:
     - /tmp/renovate-cache/others/bundler
     - /home/ubuntu/.local/share/gem/ruby/3.2.0
     - /opt/buildpack/tools/ruby/3.2.1/lib/ruby/gems/3.2.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--bindir /home/ubuntu/bin --no-document"
     - :benchmark => false
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /home/ubuntu/.cargo/bin
     - /home/ubuntu/.local/bin
     - /go/bin
     - /home/ubuntu/bin
     - /home/ubuntu/.cargo/bin
     - /home/ubuntu/.local/bin
     - /go/bin
     - /home/ubuntu/bin
     - /home/ubuntu/.cargo/bin
     - /home/ubuntu/.local/bin
     - /go/bin
     - /home/ubuntu/bin
     - /home/ubuntu/bin
     - /home/ubuntu/.cargo/bin
     - /home/ubuntu/.local/bin
     - /go/bin
     - /home/ubuntu/bin
     - /home/ubuntu/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /sbin
     - /bin
Installed v2 /usr/local/buildpack/tools/v2/ruby.sh in 2 seconds
installing v2 tool bundler v2.4.8
linking tool bundler v2.4.8
Bundler version 2.4.8
Installed v2 /usr/local/buildpack/tools/v2/bundler.sh in 0 seconds
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...

Could not find compatible versions

Because rails >= 5.0.5.rc1, < 5.0.5.rc2 depends on railties = 5.0.5.rc1
  and rails >= 5.0.5.rc2, < 5.0.5 depends on railties = 5.0.5.rc2,
  rails >= 5.0.5.rc1, < 5.0.5 requires railties = 5.0.5.rc1 OR = 5.0.5.rc2.
And because rails >= 5.0.6.rc1, < 5.0.6 depends on railties = 5.0.6.rc1
  and rails >= 5.1.0.beta1, < 5.1.3.rc1 depends on bundler >= 1.3.0, < 2.0,
rails >= 5.0.5.rc1, < 5.0.5 OR >= 5.0.6.rc1, < 5.0.6 OR >= 5.1.0.beta1, <
5.1.3.rc1 requires railties = 5.0.5.rc1 OR = 5.0.5.rc2 OR = 5.0.6.rc1 or bundler
>= 1.3.0, < 2.0.
And because rails >= 4.0.0.beta1, < 5.0.5.rc1 depends on bundler >= 1.3.0, < 2.0
  and rails >= 5.0.5, < 5.0.6.rc1 depends on railties = 5.0.5,
rails >= 4.0.0.beta1, < 5.0.6 OR >= 5.1.0.beta1, < 5.1.3.rc1 requires railties
= 5.0.5.rc1 OR = 5.0.5.rc2 OR = 5.0.5 OR = 5.0.6.rc1 or bundler >= 1.3.0, < 2.0.
And because rails >= 5.0.6, < 5.0.7 depends on railties = 5.0.6
  and rails >= 5.0.7, < 5.0.7.1 depends on railties = 5.0.7,
rails >= 4.0.0.beta1, < 5.0.7.1 OR >= 5.1.0.beta1, < 5.1.3.rc1 requires
railties = 5.0.5.rc1 OR = 5.0.5.rc2 OR = 5.0.5 OR = 5.0.6.rc1 OR = 5.0.6 OR =
5.0.7 or bundler >= 1.3.0, < 2.0.
And because rails >= 5.0.7.1, < 5.0.7.2 depends on railties = 5.0.7.1
and the current Bundler version (2.4.8) does not satisfy bundler >= 1.3.0, <
2.0,
rails >= 4.0.0.beta1, < 5.0.7.2 OR >= 5.1.0.beta1, < 5.1.3.rc1 requires
railties = 5.0.5.rc1 OR = 5.0.5.rc2 OR = 5.0.5 OR = 5.0.6.rc1 OR = 5.0.6 OR =
5.0.7 OR = 5.0.7.1.
And because rails >= 5.0.7.2, < 5.1.0.beta1 depends on railties = 5.0.7.2
  and rspec-rails >= 6.0.0.rc1 depends on railties >= 6.1,
rails >= 4.0.0.beta1, < 5.1.3.rc1 is incompatible with rspec-rails >=
6.0.0.rc1.
So, because Gemfile depends on rails >= 5.0.0, < 5.1
  and Gemfile depends on rspec-rails ~> 6.0,
  version solving has failed.

Your bundle requires a different version of Bundler than the one you're running.
Install the necessary version with `gem install bundler:2.0.0.pre.3` and rerun
bundler using `bundler _2.0.0.pre.3_ lock --update rspec-rails`

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

Successfully merging this pull request may close these issues.

0 participants