© Alan Bradburne 2016

Alan Bradburne, Rails 5 Revealed, 10.1007/978-1-4842-1709-2_4

4. Testing

Alan Bradburne

(1)Reading, UK

Since the first version of Rails, testing has been a fully integrated part of the framework. Over the years, the underlying libraries have been improved and the growing experience of Rails developers has meant that the recommended style of testing has been refined.

When Rails was first released, it made use of the Ruby Test::Unit library that was part of the standard Ruby libraries. Over time, many Rails developers moved to a new Behavior Driven Development test framework, RSpec. However, with the release of version 4, Rails moved to MiniTest, a very fast and lightweight testing library. Many Rails developers have since switched ...

Get Rails 5 Revealed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.