Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test helper methods #30

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Test helper methods #30

merged 1 commit into from
Aug 29, 2023

Commits on Aug 29, 2023

  1. Test helper methods

    Since our `accounts` and `users` are object instances we can leverage Ruby's singleton methods
    to define helpers:
    
    ```ruby
    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.
    kaspth committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    f01ea70 View commit details
    Browse the repository at this point in the history