Articles tagged rspec
Here's a short, neat trick to help save time when updating RSpec specs to reflect new test data.
(December 07, 2023)
If you're like me and don't need to test log output on a regular basis, you may not find the solutions to be immediately obvious. Here are two ways (that I know of) to approach the problem.
(August 10, 2020)
A progress report on the latest round of updates to my Rails testing book.
(April 21, 2018)
Many developers strive for 100% test coverage in their Rails applications, but what does that mean? And does it matter? Here's how I use the wonderful SimpleCov to help guide my testing.
(March 23, 2018)
Support for Rails 5.1 system testing is now available to RSpec fans like you and me. Here's how I moved my book's feature specs to system specs.
(January 08, 2018)
Do you need yet another reason to move code out of controllers and into service (or whatever you want to call them) objects? How about better, forward-thinking testability?
(November 20, 2017)
The final chapter of my Rails testing book is now available for download. Here's what's new, and what's coming next.
(October 19, 2017)
I've released the first seven chapters (plus one) of an all new edition of my popular introduction to RSpec for Rails. Here's what's new, and what to expect next.
(June 20, 2017)
A progress report on the latest version of my Rails testing book.
(February 20, 2017)
A big update to my testing book is coming in 2017. Here's a list of things to expect in the new edition.
(December 05, 2016)
In part two of a series on ditching controller specs, let's move a complicated
controller example into a more reasonable, future-proof feature spec.
(September 05, 2016)
Does your application's test suite rely heavily on controller specs? It's time to consider alternatives, as controller testing has changed in Rails 5.
Here's one way to replace a common use of these specs, even if you haven't
upgraded to Rails 5 yet.
(August 29, 2016)
I love how extensible GitHub's Atom editor is. Here are some useful packages for using it to edit and run RSpec tests.
(August 27, 2015)
Rails offers a couple of methods to access persisted test data, but how do they work? Let's get some answers, with the help of Pry.
(April 05, 2015)
(January 27, 2015)
RSpec 3.1, Rails 4.1 (and beyond), testing services, and more: Here's what's new.
(October 05, 2014)
It's getting time for the book's annual-ish update. Here's a look at what's planned for the next version.
(April 03, 2014)
A Japanese version of my testing book is now for sale on Leanpub.
(February 08, 2014)
The previous edition of my book is now a free extra with all purchases of the current edition.
(January 25, 2014)
How do you turn testing knowledge into a testing habit? Learn from an expert.
(January 15, 2014)
When is it beneficial to include a view spec in your Rails app's test suite? Here's one example.
(November 15, 2013)
A Chinese version of my testing book is now for sale on Leanpub.
(September 09, 2013)
Information on the final release, and a note on what's up next.
(August 21, 2013)
Updated development schedule for all who've purchased my RSpec book. Short answer: They're coming!
(July 16, 2013)
Wrapping up Rails 3.2 and looking ahead to Rails 4.0.
(April 24, 2013)
Notes on using tests to learn about legacy software.
(April 16, 2013)
The next round of updates to my introduction to testing in Rails is here!
(February 13, 2013)
Updates to the Rails testing toolkit I use in the book are on the way (or here already). Here's my plan for addressing these changes.
(November 14, 2012)
Anyone who's purchased my book should head over to Leanpub to download the latest version. Here's a list of what's new.
(August 03, 2012)
The expanded version of my series on learning to test is ready for non-early adopters. Here's more information on the Rails 3.2 version of the book, and what's to come later.
(June 13, 2012)
I've been busy completing the book and incorporating your feedback. Here's where things stand at the moment, along with answers to some questions I've received.
(May 15, 2012)
I'm happy to announce that the extended, DRM-free ebook version of my RSpec series is now available for purchase through Leanpub. Here's a rundown of what's there now and what's to come.
(May 07, 2012)
Integration testing with RSpec request specs make sure your application's various parts are working in cohesion. Here's a primer on getting started.
(April 24, 2012)
Controllers are the glue in a Rails application, and should be tested just like any other code. This primer will guide you to better coverage in your own apps' controllers.
(April 07, 2012)
How can you make sure your application's core building blocks are doing what you expect them to? Let's start by using RSpec to test model functionality.
(March 19, 2012)
Our series on getting comfortable with Rails testing continues as we set up RSpec for an existing application.
(March 12, 2012)
Are you still wrapping your head around Rails testing techniques? Here are the tools and techniques that helped me go from zero to decent test coverage.
(March 12, 2012)