Testing Objects with a Functional Mindset

When unit testing our Object-Oriented (OO) code, some methods are easy to test while others are hard. Functional programming gives us a mental model to help understand why: pure functions and side-effects.Easy testsSome methods are super easy to test. You set up an object, call the method, and expect a given result. This sort of test makes TDD a breeze.
Testing Objects with a Functional Mindset #ruby #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (6 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles