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

Feature request: rspec types #1

Open
steveklabnik opened this issue Aug 24, 2012 · 1 comment
Open

Feature request: rspec types #1

steveklabnik opened this issue Aug 24, 2012 · 1 comment

Comments

@steveklabnik
Copy link

Check it: https://github.com/jcasimir/draper/blob/master/lib/draper/test/rspec_integration.rb

You could do something similar, and rather than do an include, if the file path has some sort of name, tag them all, and then on the tags, do run_request or whatever.

I could help with a PR if this is something you like.

@samwgoldman
Copy link
Contributor

Seems like this could be useful for the resources dsl. Maybe spec/resources could include the resources dsl.

While I hadn't considered this behavior before, I have considered something similar. Are you familiar with capybara's rspec dsl? Capybara defines a method that creates a context with identifying metadata and configures RSpec to include the DSL for examples with that metadata.

I haven't spent any time developing ease-of-use features like this, because there has not been much use and I'm not clear what the pain points actually are. I would be happy to accept and support this feature if there is interest from users.

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

2 participants