kaspth / oaken

A fresh blended alternative to Fixtures & FactoryBot for dev and test data.
MIT License
201 stars 6 forks source link

Test helper methods #30

Closed kaspth closed 1 year ago

kaspth commented 1 year ago

Since our accounts and users are object instances we can leverage Ruby's singleton methods to define helpers:

object = Object.new
def object.hello = "hello"

object.hello # => "hello"
object.singleton_methods # => [:hello]

We probably need to refine these some more, but I want to get the tests for these in first.