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

See how testing with slots pans out #4

Open
boardfish opened this issue Aug 12, 2022 · 1 comment
Open

See how testing with slots pans out #4

boardfish opened this issue Aug 12, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@boardfish
Copy link
Collaborator

Haven't done much testing with slots just here, but I want to make the setup there as easy as possible.

@boardfish
Copy link
Collaborator Author

I guess the ideal thing to aim for here might be:

describe SomeComponent do
  describe "#with_some_slot" do
    let(:component_instance) { component.with_some_slot(...) }
  end
end

And from there, allow folks to choose what they want to vary between each test, whether that's a block for freeform content, args, or both.

@boardfish boardfish added the enhancement New feature or request label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant