Skip to content
New issue

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

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

Already on GitHub? # to your account

Simpler API [WIP] #24

Open
apotonick opened this issue Jun 16, 2023 · 1 comment
Open

Simpler API [WIP] #24

apotonick opened this issue Jun 16, 2023 · 1 comment

Comments

@apotonick
Copy link
Member

What about a basic assertion such as the following code?

assert_success Song::Operation::Create, params: {}, current_user: current_user do |result|
  {
    model: {
      title: "Timebomb",
    }
  }
end

The :model key might be a bit clumsy, it's meant to define the asserted variable name for result[:model].

@apotonick
Copy link
Member Author

@richardboehme ☝️

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant