Cyber Monday Sale 40% off unlimited courses & creative assets! 40% off unlimited assets! Save Now
by
Lessons:18Length:2.9 hours
  • Overview
  • Transcript

3.9 Testing Inheritance

With the help of inheritance, we eliminated code duplication in the AttackAction and FleeAction implementations, but there is still duplicated code within our specs. In this lesson we’ll look into how to test inheritence and how to eliminate code duplication in our specs by using shared examples.