Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could you elaborate on what you mean by "shared examples"?


He's referring to this: https://www.relishapp.com/rspec/rspec-core/v/2-0/docs/exampl...

I keep shared examples to a minimum, but I do find them useful in some cases, such as when I have to test the same few attributes over and over in different contexts. But I define the shared example in the same file that uses them, and never have project-wide shared example groups.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: