|
| 1 | +--- |
| 2 | +title: RSpec 3.5.0.beta1 has been released! |
| 3 | +author: Sam Phippen |
| 4 | +--- |
| 5 | + |
| 6 | +RSpec 3.5.0.beta1 has just been released! This is a big release for us because |
| 7 | +it's the first release of RSpec we've published that has anything that could be |
| 8 | +described as approximating support for Rails 5. |
| 9 | + |
| 10 | +The purpose of this beta release is to enable people who are upgrading to Rails |
| 11 | +5 to check their existing RSpec suites with Rails 5. If you do find any problems |
| 12 | +with this release, let us know via GitHub, and we'll hopefully get everything |
| 13 | +fixed in time for the Rails 5 release proper. |
| 14 | + |
| 15 | +## Upgrading smoothly |
| 16 | + |
| 17 | +As was discussed at Railsconf this year, Rails "soft deprecated" controller |
| 18 | +tests in Rails 5. RSpec has been affected by being downstream of this, but |
| 19 | +fortunately, we were able to make the process relatively smooth for our users. |
| 20 | + |
| 21 | +If you have existing specs with `:type => :view` or `:type => :controller` |
| 22 | +you'll need to add [the Rails Controller Testing Gem](https://github.com/rails/rails-controller-testing) |
| 23 | +to your Gemfile. For the moment we recommend using the version from GitHub, but |
| 24 | +we hope that there will be a stable version on Rubygems before Rails 5 is released |
| 25 | +proper. |
| 26 | + |
| 27 | +Gemfile example: |
| 28 | + |
| 29 | +```ruby |
| 30 | +source "https://rubygems.org" |
| 31 | + |
| 32 | +gem "rails-controller-testing", :git => "https://github.com/rails/rails-controller-testing" |
| 33 | +gem "rspec-rails", "3.5.0.beta1" |
| 34 | +``` |
| 35 | + |
| 36 | +## Summing up |
| 37 | + |
| 38 | +Since this is only a beta, I've kept this blog post nice and short. When 3.5.0 |
| 39 | +final is released we'll do a full post with much more detail. In the mean time, |
| 40 | +there are a few people I'd like to say thanks to: |
| 41 | + |
| 42 | + * The entire RSpec core team for their continued work on the project |
| 43 | + * [Sean Griffin](https://twitter.com/sgrif), who personally spent a lot of time helping me with fixing up |
| 44 | + RSpec's compatability with Rails 5 |
| 45 | + * [Andrew White](https://twitter.com/pixeltrix), who has also been helping me with RSpec's rails integration in |
| 46 | + the past few weeks. |
| 47 | + * [Cristiano Betta](https://twitter.com/cbetta) who quickly smoke tested the |
| 48 | + release against one of his rails apps for me. |
| 49 | + |
| 50 | +This release was a huge amount of work for everyone involved, and I'm really |
| 51 | +glad we're able to get you something to test against Rails 5 ahead of it's |
| 52 | +release. We hope you enjoy, and do let us know if you've got any feedback on |
| 53 | +this release. |
0 commit comments