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

Can Riot optionally support setup/teardown runs per assertion? #21

Open
gus opened this issue Jan 25, 2011 · 2 comments
Open

Can Riot optionally support setup/teardown runs per assertion? #21

gus opened this issue Jan 25, 2011 · 2 comments

Comments

@gus
Copy link
Member

gus commented Jan 25, 2011

Maybe this is a switch we can allow people to turn on. The compactness of the Riot DSL is a nice feature separate from how setups and assertions behave. Maybe it's time Riot grows a little.

This could possibly be done with a simple:

set :make_dominikh_happy, true

and then Context can look for :make_dominikh_happy. Or maybe even as a middleware that can be optionally required in that looks for this option? Yes, the optional middleware seems best since it only impacts those who want this.

@toothrot
Copy link
Member

Agreed re: middleware. No need to bulk up riot for this, lest we become shoulda/rspec

@gus
Copy link
Member Author

gus commented Jan 29, 2011

Yes indeedee. Perhaps it should be called "riot/esque"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants