http_spec icon indicating copy to clipboard operation
http_spec copied to clipboard

Feature request: rspec types

Open steveklabnik opened this issue 12 years ago • 1 comments

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.

steveklabnik avatar Aug 24 '12 01:08 steveklabnik

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.

samwgoldman avatar Aug 24 '12 02:08 samwgoldman