Migrating Rails app: which version of Rspec next?

7 views
Skip to first unread message

Jack Royal-Gordon

unread,
Sep 19, 2020, 4:25:20 PM9/19/20
to rs...@googlegroups.com
I’ve been working on migrating my Rails app and I’m currently up to Ruby 2.0, Rails 4.0, RSpec 2.99. I want to move to the latest version of RSpec that will work with the current Ruby/Rails environment, and provide a springboard form where I can continue upgrading Ruby and Rails.

Two questions:
1) Should I be migrating one minor RSpec version at a time, as they recommend for Rails, or can I just make the jump to my eventual target?
2) Would the target version be 3.9, as the changlog for rspec-rails seems to indicate (4.0 drops support for Rails 4, and I can’t find anything about any other versions terminating support for either Ruby or Rails)?

Jon Rowe

unread,
Sep 21, 2020, 10:47:58 AM9/21/20
to rs...@googlegroups.com
Hello!

1) I would go straight to 3.9 for RSpec, the whole 3.x series should be 100% compatible with 3.0.0 so you should be fine once you’ve gotten 2.99 into an upgrade ready state. If its not a straight forward pass when you do that, I would check 3.0.0 passes, but really you should have no issues.

2) I would not upgrade to rspec-rails 4.0 until you are ready to upgrade Rails to 5.x at least. We do soft support Rails 4.2 on rspec-rails 4.0 but your life will be easier if you have upgraded Rails first.

Jack Royal-Gordon

unread,
Sep 21, 2020, 3:15:53 PM9/21/20
to rs...@googlegroups.com
Super! Thanks for the quick response.

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/dejalu-217-df7b7b6f-2091-4586-9d6a-907727eba6e4%40jonrowe.co.uk.

Reply all
Reply to author
Forward
0 new messages