19: The Oncoming Storm (Sam Phippen)
Episode 19 · June 16th, 2015 · 29 mins 11 secs
About this Episode
Derek and Sean are joined by Sam Phippen from the RSpec core team to discuss RSpec mocks, testing strategies, and minitest.
- RSpec 3 adds composable matchers
- Spies were added to RSpec in 2.14
- Using
any_instance
to test legacy code - minitest
- RSpec's
stub_const
method. - Don't Stub the System Under Test
assigns
andassert_template
are deprecated in Rails 5- Sam's RailsConf talk: Understanding Rails Test Types in RSpec
- Fun & Plausible Solutions
- Sam on Twitter