Postingan

Menampilkan postingan dengan label behaviour

Objects behaviour inheritance with RSpec

About half of a year ago I was writing about object interface and Liskov Substitution Princeple . In short: Any class instance that extends the base class should pass all unit tests behaviour tests written for base class instance. It was a surprise for me that this concept has already been implemented in RSpec.