RailsConf · April 2015
RSpec: It's Not Actually Magic
RSpec is often described with the word “magic” by both its users and its detractors. Understanding how RSpec matchers, doubles, and specifications work will help you as an RSpec user. You will be able to take advantage of RSpec’s flexibility to make your tests clearer and more expressive. You’ll also get some exposure to new RSpec features, like compound matchers.
Tags
Related Talks
Testing Best Practices, or the Five Habits of Highly Effective Tests
RailsConf 2012
Test Your Legacy Rails Code
Ruby Midwest 2011
Testing Should Be Fun
RubyConf 2012
Testing Complex Systems: Creating data and limiting scope
RailsConf 2013
Test Doubles Are Not To Be Mocked
RubyConf 2016
Related Posts
-
How To Manage Duplicate Test Setup, or Can I Interest You In Weird RSpec?
Dec 2023
-
Testing Strategies
Jun 2021
-
20 Years
Mar 2021
-
The Entropy Essays #2: Why Did You Hire This Test
Jun 2020
-
The Entropy Essays (XP 2020) #1: Test speed
May 2020