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

Conversation

kaspth
Copy link
Owner

@kaspth kaspth commented Aug 29, 2023

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.

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 kaspth merged commit d464fdf into main Aug 29, 2023
2 checks passed
@kaspth kaspth deleted the test-helper-methods branch August 29, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant