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

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 ☝️

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

No branches or pull requests

1 participant