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 #rubydeveloper #rubyonrails #testing https://rubyonrails.ba/single/testing-objects-with-a-functional-mindset

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles