everydayrails / everydayrails-rspec-2017

Sample source for the 2017 edition of Everyday Rails Testing with RSpec.
http://rspectutorial.com
312 stars 247 forks source link

Chapter 4 be_success warning #76

Closed YaEvan closed 6 years ago

YaEvan commented 6 years ago

DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful? as provided by Rack::Response::Helpers.

I use be_successful fix it.

ruralocity commented 6 years ago

Thanks for noticing this. I believe you'll only get this deprecation warning if testing a Rails 5.2 application. I have no plans to update the book from Rails 5.1 to 5.2 at this time.

YaEvan commented 6 years ago

You are right, I update rails from 5.1 to 5.2, thank you for your reply.