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

More flexible assert_pass #22

Open
apotonick opened this issue Apr 6, 2023 · 0 comments
Open

More flexible assert_pass #22

apotonick opened this issue Apr 6, 2023 · 0 comments

Comments

@apotonick
Copy link
Member

While the existing API is cool to test very CRUDy operations, something like this would be a good interface for non-standard operations.

    assert_pass Web::Diagram::Operation::Create, Ctx(template_uuid_prefix: "bb999abc", current_user: current_user),
      {
        name: "New Diagram",
        diagram: ...,
        version: 1
      }

Still running the operation for you and asserting the result.

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