How I can parameterize to pass information between shared_example/include_examples?
In my specific case, I want to feed several constants to shared_example.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found answer by myself… (I was hunting for answer for this two hours.. found this just after posting this)
At David Chelimsky’s site, in article “Specifying mixins with shared example groups in RSpec-2,” I found that shared_example can accept block parameters, and include_example can give parameters..
and later…
This work well with my case.
Note that, this parametalization is documented as cucumber feature, so I could find RSPec::Core document at Relish, but not in the class documentation.