6 Line Micro Testing Framework - apiercey.github.io
Normally, I try to write tests for every project I participate in, even personal projects that never see the light of day! Yet, every once in a while, I find myself working in an environment where adding new dependencies isn’t so straightforward or tools like RSpec are a bit too bulky. In such cases, I quickly produce a few functions that allow me to execute automated tests.In Ruby, it’s quite compact and pleasant. Here is an example, at a whopping 6 lines:.
6 Line Micro Testing Framework - apiercey.github.io #ruby #rubydeveloper #rubyonrails #apiercey.github.io #framework #testing