How do reuse scenarios within different features with rspec + capybara
Say I have some scenarios that I want to test under different contexts, or
"features".
For example, I have scenarios which involve the user visiting certain
pages and expecting certain ajax results.
But, under different conditions, or "features", I need to perform
different "background" tasks which change the state of the app.
In this case I need to run the same scenarios over and over again to make
sure that everything works with the different changes to the state of the
app.
Is there a way to define scenarios somewhere, and then reuse them?
No comments:
Post a Comment