You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rs...@googlegroups.com
Hi,
rails ships for instance with ActiveModel::Lint::Tests. I can include this module into my test case and I'm sure my implemantation behaves like ActiveModel.
What is best practice to do such things with rspec(3)?
Do I have to use shared example groups and use the magic strings / shared example name around?
Ok, I can do some thing like this:
module SharedSpec NAME = 'shared spec'
shared_examples SharedSpec::NAME do |params|
end end
But I can't ensure that NAME is uniq and validating params is also not so easy like when I include a module into a class.