Feature/describe alias as system spec

28 views
Skip to first unread message

Andrew Havens

unread,
Jul 5, 2022, 7:02:17 PM7/5/22
to Capybara
Took a while for me to realize that I couldn't simply use "feature" as an alias to "describe" in my system specs because the type is hard-coded as :feature. Can we change this so that the type is inferred by the location instead of hard-coding as type: :feature? I'd like to be able to use the feature/scenario aliases in my system specs.

Thomas Walpole

unread,
Jul 6, 2022, 12:57:28 AM7/6/22
to Capybara
`feature` is defined in capybara/lib/capybara/rspec/features.rb and is set up for people who are using RSpec feature specs.  If you're using system specs then you shouldn't be using `feature`.  However if you really want to use `feature` then you are  free to redefine it yourself.  Capybara won't be changing it's defaults because it would be a huge breaking change to a lot of people.
Reply all
Reply to author
Forward
0 new messages